move CMAKE_Pascal_FLAGS_* flags after enabling the Pascal language or they get overwritten 0.9.20
authorkoda
Tue, 31 Dec 2013 00:19:12 +0100
branch0.9.20
changeset 9883 d6d3be73d427
parent 9881 749369ad65a9
child 9885 34e8880f1f0a
move CMAKE_Pascal_FLAGS_* flags after enabling the Pascal language or they get overwritten
CMakeLists.txt
hedgewars/CMakeLists.txt
--- a/CMakeLists.txt	Mon Dec 30 14:56:47 2013 -0500
+++ b/CMakeLists.txt	Tue Dec 31 00:19:12 2013 +0100
@@ -79,9 +79,6 @@
 add_flag_append(CMAKE_CXX_FLAGS "-Wall -pipe")
 add_flag_append(CMAKE_CXX_FLAGS_RELEASE "-Os")
 add_flag_append(CMAKE_CXX_FLAGS_DEBUG "-Wextra -O0")
-add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000")
-add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-O- -gv")
-add_flag_append(CMAKE_Pascal_FLAGS_RELEASE "-Os -Xs")
 
 #CMake adds a lot of additional configuration flags, so let's clear them up
 if(${MINIMAL_FLAGS})
--- a/hedgewars/CMakeLists.txt	Mon Dec 30 14:56:47 2013 -0500
+++ b/hedgewars/CMakeLists.txt	Tue Dec 31 00:19:12 2013 +0100
@@ -8,6 +8,10 @@
 
 
 enable_language(Pascal)
+add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000")
+add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-O- -gv")
+add_flag_append(CMAKE_Pascal_FLAGS_RELEASE "-Os -Xs")
+
 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc)
 include_directories(${CMAKE_CURRENT_BINARY_DIR})