[CMake] VC7.1 project files and /TP

2007-07-24 Thread Torsten Martinsen
Hi, I have a library that contains both C++ and C files. For various reasons, the C files must be compiled as C++. In my CMakeLists.txt file I have IF(OPT_DEST_VISUALSTUDIO) ADD_DEFINITIONS(-TP) ENDIF(OPT_DEST_VISUALSTUDIO) This works fine for "NMake Makefiles" outpu

Re: [CMake] VC7.1 project files and /TP

2007-07-24 Thread Bill Hoffman
Torsten Martinsen wrote: Hi, I have a library that contains both C++ and C files. For various reasons, the C files must be compiled as C++. In my CMakeLists.txt file I have IF(OPT_DEST_VISUALSTUDIO) ADD_DEFINITIONS(-TP) ENDIF(OPT_DEST_VISUALSTUDIO) This works fine

RE: [CMake] VC7.1 project files and /TP

2007-07-24 Thread Torsten Martinsen
Bill Hoffman wrote: > SET_SOURCE_FILES_PROPERTIES( ${C_SOURCE} PROPERTIES LANGUAGE CXX) > > It should work in 2.4.7, but the docs for 2.4.7 have not been updated > to include this, but the code has it. Thanks, that seems to work perfectly. -Torsten This e-mail and an