summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-03-31 19:39:16 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-03-31 19:39:16 +0000
commit5fce460172e5e7fb44f631e7be0de0da98df5a61 (patch)
treed76a84b8c28942cd3288a13aad9d576bdd33e83a /CMakeScripts
parentCmake: added more Platform File Checks (diff)
downloadinkscape-5fce460172e5e7fb44f631e7be0de0da98df5a61.tar.gz
inkscape-5fce460172e5e7fb44f631e7be0de0da98df5a61.zip
add specific location for compiler flags; like optimization, define, debug and warning flags
(bzr r5274)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/ConfigCompileFlags.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeScripts/ConfigCompileFlags.cmake b/CMakeScripts/ConfigCompileFlags.cmake
new file mode 100644
index 000000000..ed9783c4a
--- /dev/null
+++ b/CMakeScripts/ConfigCompileFlags.cmake
@@ -0,0 +1,7 @@
+SET(COMPILE_WARNING_FLAGS "-Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch")
+SET(COMPILE_OPTIMIZATION_FLAGS "-O2")
+
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_WARNING_FLAGS} ${COMPILE_OPTIMIZATION_FLAGS} -DVERSION=\\\"${INKSCAPE_VERSION}\\\" ")
+
+SET(CMAKE_MAKE_PROGRAM "${CMAKE_MAKE_PROGRAM} -j2")
+