[SWDEV-538483] Fix C++17 fs linking for GCC<9.0

Added check for GCC versions prior to 9.0 and
link with libstdc++fs when needed. This fixes
undefined symbols on older systems like Deb10
with GCC 8.3.0.

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: e1b3d5f02e]
This commit is contained in:
Bindhiya Kanangot Balakrishnan authored and Arif, Maisam committed 2025-11-14 17:59:07 -06:00
1 parent 5e56281eb0
commit 40aa184c2a
4 files changed
+12 -6

No files matched your search

+1
View File
@@ -88,6 +88,7 @@ target_link_libraries(${AMD_SMI} PRIVATE
rt
Threads::Threads
${CMAKE_DL_LIBS}
${FILESYSTEM_LIB}
)
target_include_directories(${AMD_SMI} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}