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>)