Skip to content

Commit

Permalink
Only link libstdc++fs for gcc8
Browse files Browse the repository at this point in the history
  • Loading branch information
jithunnair-amd committed Jul 29, 2024
1 parent b150a66 commit 8000cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

project(triton)
link_libraries("-lstdc++fs")
link_libraries( "$<$<AND:$<CXX_COMPILER_ID:GNU>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.0>>:-lstdc++fs>" )
include(CTest)
if(NOT WIN32)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
Expand Down

0 comments on commit 8000cf8

Please sign in to comment.