From b0895eca99422365f2a174e6b600f2bddb8d2c52 Mon Sep 17 00:00:00 2001 From: Diy Upstream Date: Wed, 1 Jul 2020 10:45:14 -0400 Subject: [PATCH] diy 2020-07-01 (b0623438) Code extracted from: https://gitlab.kitware.com/third-party/diy2.git at commit b06234388ebf398dcbd8e397fe0ba9e69f67ef35 (for/vtk-m-20200701-master). --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35c41f6f3..8268eb319 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}