author | koda |
Tue, 19 Mar 2013 09:53:12 +0100 | |
branch | cmake_pascal |
changeset 8772 | c9583cf8e10d |
parent 8770 | 53481d654691 |
child 8775 | 3cad01db0bae |
--- a/cmake_modules/utils.cmake Tue Mar 19 01:28:25 2013 +0100 +++ b/cmake_modules/utils.cmake Tue Mar 19 09:53:12 2013 +0100 @@ -28,3 +28,12 @@ #TODO: find_package_or_bundle + +macro(add_flag_append _VAR_NAME _FLAG) + set(${_VAR_NAME} "${${_VAR_NAME}} ${_FLAG}") +endmacro(add_flag_append _VAR_NAME _FLAG) + +macro(add_flag_prepend _VAR_NAME _FLAG) + set(${_VAR_NAME} "_FLAG ${${_VAR_NAME}}") +endmacro(add_flag_prepend _VAR_NAME _FLAG) +