From c29f97e9b8c2c5bf2ce9a6b7c3bb661ad2b98088 Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Tue, 9 Nov 2021 16:50:31 +0100
Subject: [PATCH] Conditional build of the algo directory

Build the algo subdirectory only if C++17 is the chosen c++ standard. The
value depends on the C++ standard used to compile FairSoft.
---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 790ab5f093..ec7201d313 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -382,8 +382,10 @@ endif()
 add_subdirectory (external)
 
 ### Base directories
-add_subdirectory (algo)
 add_subdirectory (core)
+if (${CMAKE_CXX_STANDARD} EQUAL 17)
+  add_subdirectory (algo)
+endif()
 add_subdirectory (sim)
 add_subdirectory (reco)
 add_subdirectory (analysis)
-- 
GitLab