[Cmake] SET_SOURCE_FILES_PROPERTIES
Mathieu Malaterre
Mathieu . Malaterre at creatis . insa-lyon . fr
Thu, 09 Oct 2003 16:56:53 +0200
Hi all,
After reading 'Mastering CMake' I thought I could use this (instead of
ADD_DEFINITIONS) :
SET_SOURCE_FILES_PROPERTIES(${libgdcm_la_SOURCES}
PROPERTIES
COMPILE_FLAGS -D__STDC_LIMIT_MACROS
COMPILE_FLAGS
-DPUB_DICT_PATH=\\"${CMAKE_INSTALL_PREFIX}${GDCM_DATA_DIR}\\"
)
But for some reason I only get the last one.
My compilation line should be:
g++ -D__STDC_LIMIT_MACROS -DPUB_DICT_PATH=\"/usr/local/share/gdcm\" ...
Could someone told me how I can achieve this.
Thanks,
mathieu