The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=11319 ====================================================================== Reported By: Ivan Shcheklein Assigned To: ====================================================================== Project: CMake Issue ID: 11319 Category: CMake Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2010-10-15 19:19 EDT Last Modified: 2010-10-15 19:19 EDT ====================================================================== Summary: VS2010 generator failed to create rule file Description: The following code:
set(errdbg_GENERATED ${CMAKE_CURRENT_BINARY_DIR}/errdbg/generated.txt) ADD_CUSTOM_COMMAND( OUTPUT ${errdbg_GENERATED} COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/myfile.txt ${CMAKE_CURRENT_BINARY_DIR}/errdbg/generated.txt DEPENDS ${PROJECT_SOURCE_DIR}/myfile.txt) ADD_CUSTOM_TARGET(${PROJECT_NAME} DEPENDS ${errdbg_GENERATED}) fails to generate errdbg/generated.txt.rule. Which means that VS 2010 is building this project again and again. The following command fixes this (before set): execute_process(COMMAND mkdir ${CMAKE_CURRENT_BINARY_DIR}/errdbg) ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2010-10-15 19:19 Ivan ShchekleinNew Issue 2010-10-15 19:19 Ivan ShchekleinFile Added: cmake.zip ====================================================================== _______________________________________________ cmake-developers mailing list cmake-developers@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers