diff --git a/apps/cloud_composer/CMakeLists.txt b/apps/cloud_composer/CMakeLists.txt index 47668e169a4..3b14d78b735 100644 --- a/apps/cloud_composer/CMakeLists.txt +++ b/apps/cloud_composer/CMakeLists.txt @@ -69,7 +69,9 @@ set(PCL_LIB_TYPE_ORIGIN ${PCL_LIB_TYPE}) set(PCL_LIB_TYPE STATIC) PCL_ADD_LIBRARY(pcl_cc_tool_interface COMPONENT ${SUBSUBSYS_NAME} SOURCES ${INTERFACE_HEADERS} ${INTERFACE_SOURCES}) - +if(PCL_SHARED_LIBS) + set_target_properties(pcl_cc_tool_interface PROPERTIES POSITION_INDEPENDENT_CODE TRUE) +endif() target_link_libraries(pcl_cc_tool_interface pcl_common pcl_features pcl_filters pcl_search pcl_visualization ${QTX}::Widgets)