From 9026207c54b85ff5c85de0cacc62e84b26613c20 Mon Sep 17 00:00:00 2001 From: Douglas Ayers Date: Mon, 18 Sep 2023 09:49:16 -0400 Subject: [PATCH] Updated link target and using PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 510cbef..2937834 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,7 +53,7 @@ endif() target_compile_options(OpenDDW PRIVATE $<$,$,$>: -Wall -Wextra -Wpedantic -Wno-unused> $<$: /W4>) set(OPENDDS_TARGETS - OpenDDS::OpenDDS + OpenDDS::Rtps_Udp ) target_include_directories(OpenDDW INTERFACE src) @@ -66,6 +66,6 @@ target_link_libraries(OpenDDW OPENDDS_TARGET_SOURCES(OpenDDW idl/std_qos.idl) INSTALL(FILES - "${CMAKE_SOURCE_DIR}/idl2library.cmake" - DESTINATION "share/cmake/${PROJECT_NAME}" + "${PROJECT_SOURCE_DIR}/idl2library.cmake" + DESTINATION "share/cmake/${PROJECT_NAME}" )