From 0b43bec9a7b7e6b86c4cf4de72d2c01c50f1463a Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Wed, 17 Jul 2019 20:00:02 +0200 Subject: [PATCH] CMake: Simplify summary of DDS dependency --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9187ef70..452260b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -281,8 +281,7 @@ if(PROJECT_PACKAGE_DEPENDENCIES) get_target_property(nn_include nanomsg INTERFACE_INCLUDE_DIRECTORIES) get_filename_component(prefix ${nn_include}/.. ABSOLUTE) elseif(${dep} STREQUAL DDS) - get_target_property(dds_include DDS::dds_intercom_lib INTERFACE_INCLUDE_DIRECTORIES) - get_filename_component(prefix ${dds_include}/.. ABSOLUTE) + set(prefix "${DDS_INSTALL_PREFIX}") elseif(${dep} STREQUAL Boost) if(TARGET Boost::headers) get_target_property(boost_include Boost::headers INTERFACE_INCLUDE_DIRECTORIES)