Skip to content

Commit

Permalink
Add stdc++fs
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Nov 11, 2024
1 parent de6f3ee commit 5f15479
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dart/optimizer/pagmo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5f15479

Please sign in to comment.