Remi Denis-Courmont wrote:

The project is compiling the same source files multiple times with different
defines, resulting in different object code... But it seems like
ADD_DEFINITIONS won't support this case.

Any solution?


You may write multiple .cpp files that #include the code.
Then use SET_SOURCE_FILES_PROPERTIES with different PROPERTIES COMPILE_FLAGS for each file.

Work great, here.

Jan.

--

 Dipl.-Ing. Jan Woetzel
--------------------------------------------------
 University of Kiel
 Institute of Computer Science and Applied Mathematics
 Hermann-Rodewald-Str. 3 [room 310]
 24098 Kiel/Germany
--------------------------------------------------
 Phone +49-431-880-4477
 Fax   +49-431-880-4054
 Mob.  +49-179-2937346
--------------------------------------------------
 Url   www.mip.informatik.uni-kiel.de/~jw
 Email [EMAIL PROTECTED]

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to