summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorAaron Spike <aaron@ekips.org>2008-04-07 02:57:41 +0000
committeracspike <acspike@users.sourceforge.net>2008-04-07 02:57:41 +0000
commit6f0b11142c34b895f6aafbe28af650493c3f0f3f (patch)
tree71659f5f7a0fe75a862e49356cfdb17adabe7de6 /CMakeScripts
parentRemove binary dir from Include path and replace with the source root and src/ (diff)
downloadinkscape-6f0b11142c34b895f6aafbe28af650493c3f0f3f.tar.gz
inkscape-6f0b11142c34b895f6aafbe28af650493c3f0f3f.zip
CMake: add optional flags when found
(bzr r5365)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/ConfigInkscapeDepends.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeScripts/ConfigInkscapeDepends.cmake b/CMakeScripts/ConfigInkscapeDepends.cmake
index 3dbe4387c..911b7ce1a 100644
--- a/CMakeScripts/ConfigInkscapeDepends.cmake
+++ b/CMakeScripts/ConfigInkscapeDepends.cmake
@@ -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}")
+ SET(INKSCAPE_LINK_FLAGS "${INKSCAPE_LINK_FLAGS} ${${dep_name}_LINK_FLAGS}")
ELSE("${opt}_FOUND")
message(STATUS "${opt}: NOT FOUND")
ENDIF("${opt}_FOUND")