Force global pre-cxx11 ABI for sub-projects to resolve linking issues on Linux
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user