From: acspike Date: Mon, 7 Apr 2008 02:57:41 +0000 (+0000) Subject: CMake: add optional flags when found X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a0405db9416367ba775aff1398346ef72ce1773f;p=inkscape.git CMake: add optional flags when found --- 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")