From f14ac69e244b8e273f0dbea5cb44a8df811f27b6 Mon Sep 17 00:00:00 2001 From: Lars Ivar Hatledal Date: Thu, 31 Oct 2024 14:08:25 +0100 Subject: [PATCH] fix --- src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cc5952c..bdf0414 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -108,7 +108,6 @@ target_include_directories(fmi4cpp $ PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" - "${CMAKE_CURRENT_SOURCE_DIR}/external/pugixml" ) if (FMI4CPP_USE_EXTERNAL_PUGIXML) @@ -116,6 +115,11 @@ if (FMI4CPP_USE_EXTERNAL_PUGIXML) PRIVATE pugixml::pugixml ) +else () + target_include_directories(fmi4cpp + PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/external/pugixml" + ) endif () if(WIN32)