Link libstdc++fs when compiling with gcc 8

This commit is contained in:
mhochsteger@cerbsim.com 2022-03-14 18:10:47 +01:00
parent 7f8e0f1276
commit 2136269175

View File

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