From 0bbd18f364fc1d8f8aa1d1f2740ed6db1ac16906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20St=C3=B6ggl?= Date: Fri, 27 Nov 2020 09:57:12 +0100 Subject: [PATCH] lib: Add condition for include externals/tinyxml2 (#2923) Include externals/tinyxml2 in lib/CMakeLists.txt only if USE_BUNDLED_TINYXML2 is ON, which is the default. This is a follow-up commit to 8ac55a8 --- lib/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index a1df79d7d..c193125f0 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -1,6 +1,8 @@ include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/externals/) include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/externals/picojson/) -include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/externals/tinyxml2/) +if(USE_BUNDLED_TINYXML2) + include_directories(SYSTEM ${PROJECT_SOURCE_DIR}/externals/tinyxml2/) +endif() include_directories(${PROJECT_SOURCE_DIR}/externals/simplecpp/) file(GLOB_RECURSE hdrs "*.h")