Merge branch 'link_stdc++fs_with_gcc8' into 'master'

Link libstdc++fs when compiling with gcc 8

See merge request jschoeberl/netgen!491
This commit is contained in:
Matthias Hochsteger 2022-03-14 17:27:46 +00:00
commit 4dbf1d2099

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)