This repository was archived by the owner on Mar 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -152,12 +152,3 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang" OR ${CMAKE_SYSTEM_NAME} MATCHES "D
152152 string (APPEND CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS " ${UNDEFINED_SYMBOLS_IGNORE_FLAG} " )
153153 string (APPEND CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS " ${UNDEFINED_SYMBOLS_IGNORE_FLAG} " )
154154endif ()
155-
156- # ===============================================================================
157- # See "Note: Special instructions for GCC 8" on https://github.com/CLIUtils/CLI11
158- # ===============================================================================
159- if (CMAKE_CXX_COMPILER_IS_GCC
160- AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL 8
161- AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 9)
162- add_compile_definitions (CLI11_HAS_FILESYSTEM=0)
163- endif ()
Original file line number Diff line number Diff line change @@ -260,6 +260,11 @@ target_include_directories(coreneuron SYSTEM
260260target_include_directories (coreneuron SYSTEM
261261 PRIVATE ${CORENEURON_PROJECT_SOURCE_DIR} /external/CLI11/include )
262262
263+ # See: https://en.cppreference.com/w/cpp/filesystem#Notes
264+ if (CMAKE_CXX_COMPILER_IS_GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.1)
265+ target_link_libraries (coreneuron stdc++fs)
266+ endif ()
267+
263268if (CORENRN_ENABLE_GPU)
264269 # nrnran123.cpp possibly-temporarily uses Boost.Pool in GPU builds if it's available.
265270 find_package (Boost QUIET )
You can’t perform that action at this time.
0 commit comments