# HG changeset patch
# User koda
# Date 1363696778 -3600
# Node ID 8ab4ef8b70f6e832f020eb4a6873e44cc80dafd9
# Parent  9f47c1f8056dd49b7de0fe63a06ac1a054057cae
config time pascal flags interpretation

diff -r 9f47c1f8056d -r 8ab4ef8b70f6 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()