From 28a646c3b7ed27aa5db4025b3481af8867d6ae53 Mon Sep 17 00:00:00 2001 From: Aaron Jomy Date: Tue, 3 Feb 2026 20:34:05 +0100 Subject: [PATCH] [interop] Use `ROOT_NEED_STDCXXFS` to check if CppInterOp should link against libstdc++fs --- interpreter/CppInterOp/lib/CppInterOp/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interpreter/CppInterOp/lib/CppInterOp/CMakeLists.txt b/interpreter/CppInterOp/lib/CppInterOp/CMakeLists.txt index abdb6d3f9a026..20e17d20052c4 100644 --- a/interpreter/CppInterOp/lib/CppInterOp/CMakeLists.txt +++ b/interpreter/CppInterOp/lib/CppInterOp/CMakeLists.txt @@ -54,8 +54,8 @@ if(NOT WIN32 AND NOT EMSCRIPTEN) list(APPEND link_libs dl) endif() -if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0) - list(APPEND link_libs stdc++fs) +if(ROOT_NEED_STDCXXFS) + list(APPEND link_libs stdc++fs) endif() # Get rid of libLLVM-X.so which is appended to the list of static libraries.