[CMake] Per-target compiler flags?
Jan Woetzel
jw at mip.informatik.uni-kiel.de
Wed Jul 5 06:14:48 EDT 2006
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 jw at mip.informatik.uni-kiel.de
More information about the CMake
mailing list