[Cmake] Determining host compiler/OS from CMake

Bill Hoffman bill.hoffman at kitware.com
Mon Mar 4 14:31:38 EST 2002


This is more than adding a -D, it can be used to add any arbitrary flag
to the compiler on a per file basis.  

-Bill


At 02:25 PM 3/4/2002 -0500, Andy Cedilnik wrote:
>At 02:16 PM 3/4/2002 -0500, Bill Hoffman wrote:
>>I have just added per file flags with the command:
>>
>>SOURCE_FILES_FLAGS("-Dfoobar" file1 file2 ...)
>
>Huh, I don't like the fact that you are using -Dfoobar again.
>As you said it yourself, it would be better to say something like
>SOURCE_FILES_FLAGS(DEFINE foobar file1 file2)
>
>                Andy




More information about the CMake mailing list