[CMake] set_target_properties not setting COMPILE_DEFINITIONS?

Bill Hoffman bill.hoffman at kitware.com
Tue Mar 29 08:51:00 EDT 2011


On 3/29/2011 8:25 AM, David Doria wrote:

> (with and without quotes around ${my_definitions} in the
> set_target_properties line)
>
> The message command seems to be fine:
> my definitions: UNIX;USE_ITK;USE_FLOAT_PIXELS;PIXEL_DIMENSION=1
>
> but the #if defined(UNIX) still fails in the code!
>

Did you do a make VERBOSE=1 to see what was being passed to the compiler?



More information about the CMake mailing list