From 2ec9476843b20142b0f741aa48b02fdd290050a7 Mon Sep 17 00:00:00 2001 From: Bryan Tan Date: Sun, 10 Dec 2023 17:57:24 -0800 Subject: [PATCH] Fix install interface to use CMAKE_INSTALL_INCLUDEDIR Currently, the sparta target will use `$CMAKE_INSTALL_PREFIX/include` as the include directory when installed. If the user sets a custom CMAKE_INSTALL_INCLUDEDIR, however, then this will not be the correct location. This commit changes the include directory of the sparta target to be consistent with the actual installed location. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d8b04ab..f549e39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,7 @@ add_library(sparta INTERFACE) target_include_directories(sparta INTERFACE $ - $ + $ ) target_link_libraries(sparta INTERFACE ${Boost_LIBRARIES})