[CMake] Depending on a Config File (CMake and VC++)
William A. Hoffman
billlist at nycap.rr.com
Fri May 26 16:18:23 EDT 2006
At 03:47 PM 5/26/2006, Steve Johns wrote:
>IF(CMAKE_CONFIGURATION_TYPES)
> # Handle multi-configuration generators.
> FOREACH(config ${CMAKE_CONFIGURATION_TYPES})
> CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/traps_config.in
> ${CMAKE_CURRENT_BINARY_DIR}/${config}/traps_config.txt COPYONLY)
> ENDFOREACH(config)
>ELSE(CMAKE_CONFIGURATION_TYPES)
> # Handle single-configuration generators.
> CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/traps_config.in
> ${CMAKE_CURRENT_BINARY_DIR}/traps_config.txt COPYONLY)
>ENDIF(CMAKE_CONFIGURATION_TYPES)
The failure is coming from some other place. If I create a CMakeList.txt
file with only the above in it, it works as expected.
Are there any other places in your cmakelist files that reference traps_config.txt?
-Bill
More information about the CMake
mailing list