[Cmake] SET_SOURCE_FILES_PROPERTIES
William A. Hoffman
billlist at nycap . rr . com
Thu, 09 Oct 2003 11:54:49 -0400
As a side note, It is usually better to configure a .h file than to use
-D options on the command line.
-Bill
At 11:33 AM 10/9/2003, Mathieu Malaterre wrote:
>William A. Hoffman wrote:
>>You can only list the COMPILE_FLAGS once in the command.
>>You also have too many \\, you only need one level of escape.
>>So, the following should work:
>>SET_SOURCE_FILES_PROPERTIES(${libgdcm_la_SOURCES}
>> PROPERTIES
>> COMPILE_FLAGS "-D__STDC_LIMIT_MACROS -DPUB_DICT_PATH=\"${CMAKE_INSTALL_PREFIX}${GDCM_DATA_DIR}\"")
>
>Thanks Bill,
>
> As I really need those \\ I changed to:
>
>COMPILE_FLAGS "-D__STDC_LIMIT_MACROS -DPUB_DICT_PATH=\\\"${CMAKE_INSTALL_PREFIX}${GDCM_DATA_DIR}\\\"")
>
> For some reason I got lost with too many \\...
>
>Regards,
>mathieu