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.
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake