cmake_modules/utils.cmake
changeset 9227 c02e081ba481
parent 9225 d8d929f92633
child 9244 bb95e351270c
--- a/cmake_modules/utils.cmake	Thu Jun 13 22:55:33 2013 +0200
+++ b/cmake_modules/utils.cmake	Fri Jun 14 01:01:18 2013 +0200
@@ -37,10 +37,10 @@
 
 macro(add_linker_flag _FLAG)
     list(APPEND haskell_flags "-optl" "${_FLAG}")
-    add_flag_prepend(CMAKE_Pascal_FLAGS "-k${_FLAG}")
-    add_flag_prepend(CMAKE_EXE_LINKER_FLAGS "-Wl,${_FLAG}")
-    add_flag_prepend(CMAKE_SHARED_LIBRARY_C_FLAGS "-Wl,${_FLAG}")
-    add_flag_prepend(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-Wl,${_FLAG}")
+    add_flag_append(CMAKE_Pascal_FLAGS "-k${_FLAG}")
+    add_flag_append(CMAKE_EXE_LINKER_FLAGS "-Wl,${_FLAG}")
+    add_flag_append(CMAKE_SHARED_LIBRARY_C_FLAGS "-Wl,${_FLAG}")
+    add_flag_append(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-Wl,${_FLAG}")
 endmacro(add_linker_flag _FLAG)
 
 #TODO: find_package_or_bundle