From 97ec5080860fd432b37e426bd3726cf6c8634b7a Mon Sep 17 00:00:00 2001 From: BrianHarrisonAMD <169072757+BrianHarrisonAMD@users.noreply.github.com> Date: Mon, 22 Jul 2024 00:55:18 -0600 Subject: [PATCH] Fix GCC8 linking issues with stdc++fs (#3126) --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 895205c275..14e7c954b1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 $,zstd::libzstd_shared,zstd::libzstd_static>)