cmake_modules/utils.cmake
branchwebgl
changeset 9244 bb95e351270c
parent 9227 c02e081ba481
child 9274 9749524d1767
equal deleted inserted replaced
9242:c07f341adad9 9244:bb95e351270c
    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)