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