config time pascal flags interpretation cmake_pascal
authorkoda
Tue, 19 Mar 2013 13:39:38 +0100
branchcmake_pascal
changeset 8796 8ab4ef8b70f6
parent 8794 9f47c1f8056d
child 8798 03d113d51062
config time pascal flags interpretation
CMakeLists.txt
--- a/CMakeLists.txt	Tue Mar 19 13:36:10 2013 +0100
+++ b/CMakeLists.txt	Tue Mar 19 13:39:38 2013 +0100
@@ -236,12 +236,14 @@
 unset(CMAKE_REQUIRED_FLAGS)
 
 #parse additional parameters
-if(FPFLAGS OR GHFLAGS)
+if(FPFLAGS)
+    add_flag_prepend(CMAKE_Pascal_FLAGS ${FPFLAGS})
+endif()
+if(GHFLAGS)
     if(${allow_parse_args})
+        separate_arguments(ghflags_parsed UNIX_COMMAND ${GHFLAGS})
+    else()
         message(${WARNING} "FPFLAGS and GHFLAGS are available only when using CMake >= 2.8")
-    else()
-        separate_arguments(fpflags_parsed UNIX_COMMAND ${FPFLAGS})
-        separate_arguments(ghflags_parsed UNIX_COMMAND ${GHFLAGS})
     endif()
 endif()