Skip to content
Snippets Groups Projects
Commit c9efaac9 authored by Robert Maynard's avatar Robert Maynard Committed by Ben Boeckel
Browse files

Make sure statically built DIY has position independent code

This is required so that DIY can be consumed by a shared/dynamic
library.
parent 83d40565
Branches dev/0.0.3
No related tags found
No related merge requests found
......@@ -142,6 +142,7 @@ function(add_diy_mpi_library use_mpi)
endif()
add_library(${lib_name} ${sources})
set_target_properties(${lib_name} PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_compile_features(${lib_name} PRIVATE cxx_std_11)
target_compile_definitions(${lib_name}
PRIVATE -DVTKMDIY_HAS_MPI=${has_mpi_val}
......
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