Skip to content

Commit

Permalink
Fix GCC8 linking issues with stdc++fs (#3126)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHarrisonAMD authored Jul 22, 2024
1 parent 3991184 commit 97ec508
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,10 @@ rocm_set_soversion(MIOpen ${MIOpen_SOVERSION})

clang_tidy_check(MIOpen)

if(HAS_LIB_STD_FILESYSTEM)
target_link_libraries(MIOpen PRIVATE stdc++fs)
endif()

find_package(zstd)
if(zstd_FOUND)
target_link_libraries(MIOpen PRIVATE $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>)
Expand Down

0 comments on commit 97ec508

Please sign in to comment.