Skip to content

Commit

Permalink
Add stdc++fs to target_link_libraries for gcc < 9
Browse files Browse the repository at this point in the history
  • Loading branch information
elshize committed Dec 31, 2023
1 parent 35330c4 commit 872efd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ target_link_libraries(pisa
wapopp
trecpp
)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
target_link_libraries(pisa PUBLIC stdc++fs)
endif()
endif()
target_include_directories(pisa PUBLIC external)

if (PISA_ENABLE_TESTING AND BUILD_TESTING)
Expand Down

0 comments on commit 872efd8

Please sign in to comment.