]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Also put LINKER_FLAGS into COMPILE_OPTIONS target definition 2543/head
authorMatthias Maier <tamiko@43-1.org>
Fri, 22 Apr 2016 15:11:18 +0000 (10:11 -0500)
committerMatthias Maier <tamiko@43-1.org>
Fri, 22 Apr 2016 15:11:18 +0000 (10:11 -0500)
source/CMakeLists.txt

index cd69c0e8364186fbd104514e79775413048d60c8..5a575fc65a9228bb060ce0038086cf08e22b18a3 100644 (file)
@@ -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
         $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include/>
@@ -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}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.