From 9473facabc02dee6c117c0ab90899322c99359f9 Mon Sep 17 00:00:00 2001 From: Bernhard Kaindl Date: Sat, 12 Oct 2024 13:54:46 +0200 Subject: [PATCH] spack: Add ${PUGIXML_INCLUDE_DIR} to target_include_directories (needed for spack) When `pugixml` is not installed in a standard location (e.g. use pugixml build by spack), the include directory needs to be added to the target's include dirs. --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4ea4546..78b37ce 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -101,6 +101,7 @@ target_include_directories(fmi4cpp $ PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} + ${PUGIXML_INCLUDE_DIR} ) target_link_libraries(fmi4cpp