[CMake] SET_SOURCE_FILES_PROPERTIES and configurations
Luca Cappa
luca.cappa at sequoia.it
Tue Dec 5 10:45:16 EST 2006
Hello,
I am using cmake 2.4.5 with msvc 2005.
I am setting this flag for all the source files i want to use
precompilated headers with.
SET(PREC_FLAG "/Yu")
IF(MSVC)
FOREACH (FILENAME ${LIB_SRC})
IF ("${FILENAME}" MATCHES "cpp")
SET_SOURCE_FILES_PROPERTIES(${FILENAME} COMPILE_FLAGS
${PREC_FLAG}\"seqlibcommon.h\")
ENDIF ("${FILENAME}" MATCHES "cpp")
ENDFOREACH (FILENAME)
ENDIF(MSVC)
The problem is that I cannot use different flags (perhaps
<CONFIGURATION>_COMPILE_FLAGS) to generate two different precompiled
files, one for DEBUG and one for the RELEASE build. Any help?
Luca
More information about the CMake
mailing list