[Cmake] SET_SOURCE_FILES_PROPERTIES
Mathieu Malaterre
Mathieu . Malaterre at creatis . insa-lyon . fr
Thu, 09 Oct 2003 17:33:47 +0200
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