Skip to content
Snippets Groups Projects
Verified Commit 7a0814d7 authored by René Fritze's avatar René Fritze
Browse files

[cmake] add allpackage flags to created libs

parent b39fd7f2
No related branches found
No related tags found
2 merge requests!10Fix compilation with new clang,!6Merge pybind
function(dune_pybindxi_add_helper_lib target_name)
message(WARNING "dune_pybindxi_add_helper_lib is deprecated. Add source to bindings lib directly")
add_library(${target_name} EXCLUDE_FROM_ALL ${ARGN})
target_include_directories(${target_name}
PRIVATE ${PYBIND11_INCLUDE_DIR}
......
......@@ -40,4 +40,3 @@ endif()
include(DunePybindxiUtils)
include(DunePybindxiHelper)
......@@ -167,4 +167,11 @@ function(dune_pybindxi_add_module target_name)
# needed for bigger binding projects due to the limit to 64k addressable sections
target_compile_options(${target_name} PRIVATE /MP /bigobj)
endif()
add_dune_all_flags(${target_name})
if(DUNE_XT_WITH_PYTHON_BINDINGS)
add_custom_target(bindings ALL DEPENDS ${target_name})
else()
add_custom_target(bindings DEPENDS ${target_name})
endif()
endfunction()
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