diff --git a/libsrc/core/CMakeLists.txt b/libsrc/core/CMakeLists.txt index 190de2dc..823efa84 100644 --- a/libsrc/core/CMakeLists.txt +++ b/libsrc/core/CMakeLists.txt @@ -20,6 +20,9 @@ target_compile_options(ngcore PUBLIC "${NG_COMPILE_FLAGS}") if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") target_compile_options(ngcore PUBLIC -fsized-deallocation -faligned-allocation) endif() +if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9) + target_link_libraries(ngcore PUBLIC stdc++fs) +endif() if(USE_PYTHON) target_sources(ngcore PRIVATE python_ngcore.cpp)