Skip to content
Snippets Groups Projects
Commit 4ea1241e authored by Robert Maynard's avatar Robert Maynard Committed by Sujin Philip
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 5183e2d4
Branches dev/0.0.3
No related tags found
No related merge requests found
......@@ -139,6 +139,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