On 12/5/06, Luca Cappa <[EMAIL PROTECTED]> wrote:
Hello,
Hi,
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?
Maybe you should read the `Useful variables' wiki page:
http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools
----------------------------------------------------------------------------------------
* None (CMAKE_C_FLAGS or CMAKE_CXX_FLAGS used)
* Debug (CMAKE_C_FLAGS_DEBUG or CMAKE_CXX_FLAGS_DEBUG)
* Release (CMAKE_C_FLAGS_RELEASE or CMAKE_CXX_FLAGS_RELEASE)
[...]
----------------------------------------------------------------------------------------
CU
--
Tristan Carel
Music with dinner is an insult both to the cook and the violinist.
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake