diff --git a/consumer/CMakeLists.txt b/consumer/CMakeLists.txt index 15ae228e20b81f239f9111c9a1bc829f10c01750..967a1de369e15d7882c661945f16880d7da53e42 100644 --- a/consumer/CMakeLists.txt +++ b/consumer/CMakeLists.txt @@ -42,4 +42,8 @@ target_link_libraries(consumer PUBLIC ${CONAN_OR_CMAKE_conduit} ) +target_compile_options(consumer + PRIVATE -fPIC + ) + add_subdirectory(tests) diff --git a/layout/CMakeLists.txt b/layout/CMakeLists.txt index 7583f0d5b2023a85ca8d66e1b34588bc98602420..670e0d5d0de61515dd7314415fd2f732674c3148 100644 --- a/layout/CMakeLists.txt +++ b/layout/CMakeLists.txt @@ -37,4 +37,8 @@ target_include_directories(layout PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/include ) +target_compile_options(layout + PRIVATE -fPIC + ) + add_subdirectory(tests) diff --git a/producer/CMakeLists.txt b/producer/CMakeLists.txt index 59b4c1100a263b5c909f0669257debc99cf09646..967b399b8ed9f07d80c7ffe9a7a654b408089d9b 100644 --- a/producer/CMakeLists.txt +++ b/producer/CMakeLists.txt @@ -42,4 +42,8 @@ target_link_libraries(producer PUBLIC ${CONAN_OR_CMAKE_conduit} ) +target_compile_options(producer + PRIVATE -fPIC + ) + add_subdirectory(tests)