[CMake] Problem with ADD_DEFINITIONS
Bill Hoffman
bill.hoffman at kitware.com
Fri Mar 23 20:04:04 EST 2007
Philip Lowman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Werner Smekal wrote:
>
>> I would say the third and correct option is to use
>> SET_SOURCE_FILES_PROPERTIES together with the COMPILE_FLAGS property.
>>
>
> I agree.
>
> There is one minor bug with this command that I've filed below that
> people should be aware of. It will affect you if you're compiling the
> same source file twice.
>
I can not reproduce the bug you have given... It sounds like something
else is going on in your cmakelist file. I don't think the if statement
or set_source_files_properties is that broken....
-Bill
More information about the CMake
mailing list