mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
Link libstdc++fs when compiling with gcc 8
This commit is contained in:
parent
7f8e0f1276
commit
2136269175
@ -20,6 +20,9 @@ target_compile_options(ngcore PUBLIC "${NG_COMPILE_FLAGS}")
|
|||||||
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||||
target_compile_options(ngcore PUBLIC -fsized-deallocation -faligned-allocation)
|
target_compile_options(ngcore PUBLIC -fsized-deallocation -faligned-allocation)
|
||||||
endif()
|
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)
|
if(USE_PYTHON)
|
||||||
target_sources(ngcore PRIVATE python_ngcore.cpp)
|
target_sources(ngcore PRIVATE python_ngcore.cpp)
|
||||||
|
Loading…
Reference in New Issue
Block a user