--- a/cmake_modules/CMakeDeterminePascalCompiler.cmake Fri Oct 11 11:55:31 2013 +0200
+++ b/cmake_modules/CMakeDeterminePascalCompiler.cmake Fri Oct 11 17:43:13 2013 +0200
@@ -5,6 +5,9 @@
# the cmake variable CMAKE_GENERATOR_PASCAL which can be defined by a generator
# as a default compiler
+# NOTE: on Darwin cmake >= 2.8.11 until cmake <= 2.8.12.1 will add an incompatible
+# -F flag to <FLAGS> so you won't be able to use those versions with this script
+
if(NOT CMAKE_Pascal_COMPILER)
# prefer the environment variable FPC
if($ENV{FPC} MATCHES ".+")
@@ -45,6 +48,7 @@
OUTPUT_VARIABLE CMAKE_Pascal_COMPILER_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
) # we assume no error for something so simple
+ set(CMAKE_Pascal_COMPILER_ARG1 "-l- -v0ewn")
endif(NOT CMAKE_Pascal_COMPILER_VERSION)
mark_as_advanced(CMAKE_Pascal_COMPILER_VERSION)