From c088aa7c283c9e7fbdb18b922fba36e500a9991b Mon Sep 17 00:00:00 2001
From: Jean-Marco Alameddine <jean-marco.alameddine@tu-dortmund.de>
Date: Wed, 16 Jun 2021 11:46:33 +0200
Subject: [PATCH] Set compiler.libcxx to libstdc++11 for all systems but MacOS

---
 CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index aa8d73798..0605a361b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -106,10 +106,14 @@ include (conan) # self-provided in 'cmake' directory
 #
 # download and build all dependencies
 message (STATUS "Installing dependencies from Conan (this may take some time)...")
+if(NOT APPLE)
+  set(SETTINGS compiler.libcxx=libstdc++11) # not available on MacOS
+endif()
 conan_cmake_run (CONANFILE conanfile.txt
                  BASIC_SETUP CMAKE_TARGETS
                  BUILD missing
-                 BUILD_TYPE "Release")
+                 BUILD_TYPE "Release"
+                 SETTINGS ${SETTINGS})
 #
 # add cnpy temporarily. As long as SaveBoostHistogram does not save to parquet directly
 #
-- 
GitLab