From c1f19c4c06d8bd182da530f77ef5ffeb551a6460 Mon Sep 17 00:00:00 2001 From: James Goppert Date: Wed, 19 Feb 2025 13:49:43 -0500 Subject: [PATCH] Fix installation paths. GNUInstallDirs was not defined when target_include_directories was set. This caused it to be blank and the cmake target import failed. User projects importing the cmake target should use include qualisys_cpp_sdk/RTProtocol.h etc. Signed-off-by: James Goppert --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f97b215..80eece5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.8) project(qualisys_cpp_sdk) +include(GNUInstallDirs) + option(${PROJECT_NAME}_BUILD_EXAMPLES "Build examples" OFF) option(${PROJECT_NAME}_BUILD_TESTS "Build tests" OFF) @@ -46,7 +48,6 @@ set_target_properties(${PROJECT_NAME} # ----------- INSTALL & EXPORT ----------- -include(GNUInstallDirs) set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME})