Code

add CFLAGS from dependencies to CMAKE_C_FLAGS as well (instead of only to CXX)
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 7 Apr 2008 08:12:33 +0000 (08:12 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 7 Apr 2008 08:12:33 +0000 (08:12 +0000)
CMakeScripts/ConfigInkscapeDepends.cmake

index 911b7ce1a498608d668845c156258d0ec7ba8eff..e23b59b045cae3a283be97f14602f5eabda385f4 100644 (file)
@@ -41,6 +41,7 @@ FOREACH(dep ${INKSCAPE_DEPENDS})
         message(STATUS "${dep}: FOUND")
         # Set Compiler Flags\r
         SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${${dep_name}_CFLAGS}")\r
+        SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${${dep_name}_CFLAGS}")
         SET(INKSCAPE_LINK_FLAGS "${INKSCAPE_LINK_FLAGS} ${${dep_name}_LINK_FLAGS}")\r
     ELSE("${dep}_FOUND")
         message(STATUS "${dep}: NOT FOUND")