From: <ai...@us...> - 2008-10-11 06:10:21
|
Revision: 8881 http://plplot.svn.sourceforge.net/plplot/?rev=8881&view=rev Author: airwin Date: 2008-10-11 06:10:19 +0000 (Sat, 11 Oct 2008) Log Message: ----------- Deal with case where source file COMPILE_FLAGS property is not found. Modified Paths: -------------- trunk/src/CMakeLists.txt Modified: trunk/src/CMakeLists.txt =================================================================== --- trunk/src/CMakeLists.txt 2008-10-11 01:50:08 UTC (rev 8880) +++ trunk/src/CMakeLists.txt 2008-10-11 06:10:19 UTC (rev 8881) @@ -58,6 +58,10 @@ if(ENABLE_DYNDRIVERS) get_source_file_property(PLCORE_COMPILE_PROPS plcore.c COMPILE_FLAGS) + # Deal with NOTFOUND case. + if(NOT PLCORE_COMPILE_PROPS) + set(PLCORE_COMPILE_PROPS) + endif(NOT PLCORE_COMPILE_PROPS) set_source_files_properties( plcore.c PROPERTIES COMPILE_FLAGS "${PLCORE_COMPILE_PROPS} -I${LTDL_INCLUDE_DIR}" @@ -186,6 +190,10 @@ if(WITH_FREETYPE) get_source_file_property(PLFREETYPE_COMPILE_PROPS plfreetype.c COMPILE_FLAGS) + # Deal with NOTFOUND case. + if(NOT PLFREETYPE_COMPILE_PROPS) + set(PLFREETYPE_COMPILE_PROPS) + endif(NOT PLFREETYPE_COMPILE_PROPS) set_source_files_properties(plfreetype.c PROPERTIES COMPILE_FLAGS "${PLFREETYPE_COMPILE_PROPS} -I${FREETYPE_INCLUDE_DIR}") set( libplplot${LIB_TAG}_LINK_LIBRARIES This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |