[CMake] Configure_file, permission denied

Hendrik Sattler post at hendrik-sattler.de
Fri Jan 24 00:16:37 EST 2014



jmerkow <jmerkow at gmail.com> schrieb:
>I am trying to use configure_file but I get a permissions denied error.
>
>Code:
>configure_file(${TestProj_SOURCE_DIR}/CMake/developer-core-script.in
>${TestProj_BIN_DIR}/mysim)
>
>Error:
>CMake Error: Could not open file for write in copy operation /mysim.tmp
>CMake Error: : System Error: Permission denied
>CMake Error at CMakeLists.txt:475 (configure_file):
>  configure_file Problem configuring file
>
>it seems to be related to this commit:
>http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7195aca54f40778f41894c9e62649afe09e71d6c;ds=inline
>
>I tried setting my CMAKE_PLATFORM_ROOT_BIN to the INFO_DIR
>SET(CMAKE_PLATFORM_ROOT_BIN "${CMAKE_PLATFORM_INFO_DIR}")
>
>This did not solve the problem.  I'd rather not update CMake right now
>if
>there is an easy workaround.
>
>
>
>--
>View this message in context:
>http://cmake.3232098.n2.nabble.com/Configure-file-permission-denied-tp7586595.html
>Sent from the CMake mailing list archive at Nabble.com.

Try using ${TestProj_BINARY_DIR} instead of ${TestProj_BIN_DIR}


More information about the CMake mailing list