Code

CMake: add optional flags when found
authoracspike <acspike@users.sourceforge.net>
Mon, 7 Apr 2008 02:57:41 +0000 (02:57 +0000)
committeracspike <acspike@users.sourceforge.net>
Mon, 7 Apr 2008 02:57:41 +0000 (02:57 +0000)
CMakeScripts/ConfigInkscapeDepends.cmake

index 3dbe4387cbac18b32bc902cc8bc45b95c6e4813f..911b7ce1a498608d668845c156258d0ec7ba8eff 100644 (file)
@@ -63,6 +63,8 @@ FOREACH(opt ${INKSCAPE_OPTIONAL})
 #    PKGCONFIG_VERSION(${opt} "${opt}_VERSION")
     IF("${opt}_FOUND")
         message(STATUS "${opt}: FOUND")
+        SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${${dep_name}_CFLAGS}")\r
+        SET(INKSCAPE_LINK_FLAGS "${INKSCAPE_LINK_FLAGS} ${${dep_name}_LINK_FLAGS}")\r
     ELSE("${opt}_FOUND")
         message(STATUS "${opt}: NOT FOUND")
     ENDIF("${opt}_FOUND")