make sure that linker flags are picked by the pascal rule
authorkoda
Sat, 24 Aug 2013 12:24:31 +0200
changeset 9417 a0d014328165
parent 9415 276f6d7d9e2e
child 9419 fa8324ed4702
make sure that linker flags are picked by the pascal rule
cmake_modules/CMakePascalInformation.cmake
--- a/cmake_modules/CMakePascalInformation.cmake	Sat Aug 24 12:00:40 2013 +0200
+++ b/cmake_modules/CMakePascalInformation.cmake	Sat Aug 24 12:24:31 2013 +0200
@@ -182,7 +182,7 @@
 
     #-Cn is mandatory as it's what creates the ppas.* script
     set(CMAKE_Pascal_COMPILE_OBJECT
-        "<CMAKE_Pascal_COMPILER> -Cn -FE${EXECUTABLE_OUTPUT_PATH} -FU${CMAKE_CURRENT_BINARY_DIR}/<OBJECT_DIR> ${CMAKE_Pascal_UNIX_FLAGS} <FLAGS> <SOURCE>")
+        "<CMAKE_Pascal_COMPILER> -Cn -FE${EXECUTABLE_OUTPUT_PATH} -FU${CMAKE_CURRENT_BINARY_DIR}/<OBJECT_DIR> ${CMAKE_Pascal_UNIX_FLAGS} <FLAGS> <CMAKE_Pascal_LINK_FLAGS> <SOURCE>")
 endif(NOT CMAKE_Pascal_COMPILE_OBJECT)
 
 # link Pascal objects in a single executable