--- 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()