equal
deleted
inserted
replaced
34 macro(add_flag_prepend _VAR_NAME _FLAG) |
34 macro(add_flag_prepend _VAR_NAME _FLAG) |
35 set(${_VAR_NAME} "${_FLAG} ${${_VAR_NAME}}") |
35 set(${_VAR_NAME} "${_FLAG} ${${_VAR_NAME}}") |
36 endmacro(add_flag_prepend _VAR_NAME _FLAG) |
36 endmacro(add_flag_prepend _VAR_NAME _FLAG) |
37 |
37 |
38 macro(add_linker_flag _FLAG) |
38 macro(add_linker_flag _FLAG) |
39 list(APPEND haskell_flags "-optl" "${_FLAG}") |
39 list(APPEND haskell_flags "-optl" "-Wl,${_FLAG}") |
40 add_flag_append(CMAKE_Pascal_FLAGS "-k${_FLAG}") |
40 add_flag_append(CMAKE_Pascal_FLAGS "-k${_FLAG}") |
41 add_flag_append(CMAKE_EXE_LINKER_FLAGS "-Wl,${_FLAG}") |
41 add_flag_append(CMAKE_EXE_LINKER_FLAGS "-Wl,${_FLAG}") |
42 add_flag_append(CMAKE_SHARED_LIBRARY_C_FLAGS "-Wl,${_FLAG}") |
42 add_flag_append(CMAKE_SHARED_LIBRARY_C_FLAGS "-Wl,${_FLAG}") |
43 add_flag_append(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-Wl,${_FLAG}") |
43 add_flag_append(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-Wl,${_FLAG}") |
44 endmacro(add_linker_flag _FLAG) |
44 endmacro(add_linker_flag _FLAG) |