From 041eab7155c68c689a08b5300a1f4a83b84ddbd1 Mon Sep 17 00:00:00 2001 From: AI-anonymous Date: Wed, 20 May 2026 00:11:47 +0200 Subject: [PATCH] Force global pre-cxx11 ABI for sub-projects to resolve linking issues on Linux --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d4d36d..e2913cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,9 @@ option(FCES_ENABLE_OPENMP "Enable OpenMP for parallel evolution" ON) # libtorch (PyTorch C++ API) find_package(Torch REQUIRED) +if(NOT MSVC) + add_compile_definitions(_GLIBCXX_USE_CXX11_ABI=0) +endif() # OpenMP (optional, for parallel population evaluation) if(FCES_ENABLE_OPENMP)