From: Matthias Maier Date: Fri, 22 Apr 2016 15:11:18 +0000 (-0500) Subject: CMake: Also put LINKER_FLAGS into COMPILE_OPTIONS target definition X-Git-Tag: v8.5.0-rc1~1081^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=175cbfbe77217d5249370dcfeada159e44ac7840;p=dealii.git CMake: Also put LINKER_FLAGS into COMPILE_OPTIONS target definition --- diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index cd69c0e836..5a575fc65a 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -87,8 +87,6 @@ FOREACH(build ${DEAL_II_BUILD_TYPES}) # versions: # - # FIXME: There is no INTERFACE_LINK_FLAGS yet... *sigh* - SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} PROPERTY INTERFACE_INCLUDE_DIRECTORIES $ @@ -115,7 +113,11 @@ FOREACH(build ${DEAL_II_BUILD_TYPES}) ${DEAL_II_DEFINITIONS_${build}} ) + + # FIXME: There is no INTERFACE_LINK_FLAGS yet... *sigh* + SET(_flags "${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${build}}") + SET(_flags "${_flags} ${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${build}}") SEPARATE_ARGUMENTS(_flags) SET_PROPERTY(TARGET ${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX} PROPERTY INTERFACE_COMPILE_OPTIONS ${_flags}