From 5f1547908335a93c3ba362e4aaa703d99a3c5d07 Mon Sep 17 00:00:00 2001 From: Jeongseok Lee Date: Sun, 10 Nov 2024 17:31:49 -0800 Subject: [PATCH] Add stdc++fs --- dart/optimizer/pagmo/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dart/optimizer/pagmo/CMakeLists.txt b/dart/optimizer/pagmo/CMakeLists.txt index 455bed947324a..b1dac756b1160 100644 --- a/dart/optimizer/pagmo/CMakeLists.txt +++ b/dart/optimizer/pagmo/CMakeLists.txt @@ -21,6 +21,9 @@ set(component_name optimizer-pagmo) # Add target dart_add_library(${target_name} ${hdrs} ${srcs}) target_link_libraries(${target_name} PUBLIC dart Pagmo::pagmo) +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9) + target_link_libraries(${target_name} PUBLIC stdc++fs) +endif() # Thread if(THREADS_HAVE_PTHREAD_ARG)