From 31607e917447418c9ea5afc295c7888388fca438 Mon Sep 17 00:00:00 2001 From: verbalshadow Date: Mon, 7 Apr 2008 03:53:51 +0000 Subject: [PATCH] Cmake: Moved CMAKE_C_FLAGS to ConfigCompileFlags.cmake --- CMakeLists.txt | 3 +-- CMakeScripts/ConfigCompileFlags.cmake | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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") -- 2.30.2