Skip to content
Snippets Groups Projects

Merge branch 'bugfix/cmake-apply-compile-options-in-add-dune-all-flags' into 'master'

Merged Steffen Müthing requested to merge cherry-pick-75fa89c9 into releases/2.6
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
@@ -1263,9 +1263,11 @@ macro(add_dune_all_flags targets)
get_property(incs GLOBAL PROPERTY ALL_PKG_INCS)
get_property(defs GLOBAL PROPERTY ALL_PKG_DEFS)
get_property(libs GLOBAL PROPERTY ALL_PKG_LIBS)
get_property(opts GLOBAL PROPERTY ALL_PKG_OPTS)
foreach(target ${targets})
set_property(TARGET ${target} APPEND PROPERTY INCLUDE_DIRECTORIES ${incs})
set_property(TARGET ${target} APPEND PROPERTY COMPILE_DEFINITIONS ${defs})
target_link_libraries(${target} ${DUNE_LIBS} ${libs})
target_compile_options(${target} PUBLIC ${opts})
endforeach()
endmacro(add_dune_all_flags targets)
Loading