Skip to content
Snippets Groups Projects
Commit a8a0018c authored by Andreas Dedner's avatar Andreas Dedner
Browse files

Merge branch 'cherry-pick-75fa89c9' into 'releases/2.6'

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

See merge request !461
parents f4f39d81 a0771b16
No related branches found
No related tags found
3 merge requests!586Centralize CI config for 2.6 release,!531Update CI for 2.6 release branch,!461Merge branch 'bugfix/cmake-apply-compile-options-in-add-dune-all-flags' into 'master'
Pipeline #
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment