From: verbalshadow Date: Mon, 7 Apr 2008 03:53:51 +0000 (+0000) Subject: Cmake: Moved CMAKE_C_FLAGS to ConfigCompileFlags.cmake X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31607e917447418c9ea5afc295c7888388fca438;p=inkscape.git Cmake: Moved CMAKE_C_FLAGS to ConfigCompileFlags.cmake --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 02a257491..db50b9231 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,8 +29,7 @@ SET(CMAKE_SKIP_RPATH:BOOL OFF) SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMakeScripts) INCLUDE(ConfigCompileFlags) INCLUDE(ConfigInkscapeDepends) - -SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}") + INCLUDE_DIRECTORIES ("${PROJECT_SOURCE_DIR}" src/) LINK_DIRECTORIES (src/) diff --git a/CMakeScripts/ConfigCompileFlags.cmake b/CMakeScripts/ConfigCompileFlags.cmake index 4e789bc2e..3c789931c 100644 --- a/CMakeScripts/ConfigCompileFlags.cmake +++ b/CMakeScripts/ConfigCompileFlags.cmake @@ -1,3 +1,4 @@ +SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}") SET(COMPILE_WARNING_FLAGS "-Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch") SET(COMPILE_OPTIMIZATION_FLAGS "-O2")