branch | cmake_pascal |
changeset 8772 | c9583cf8e10d |
parent 8688 | 88a6114a318c |
child 8794 | 9f47c1f8056d |
--- 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) +