Skip to content

Commit

Permalink
Revert "Add ability for GCC 8 in CMake to build fgradient which uses …
Browse files Browse the repository at this point in the history
…std::filesystem" (AMReX-Codes#3601)

Reverts AMReX-Codes#3523
  • Loading branch information
jrood-nrel authored and guj committed Dec 13, 2023
1 parent 4ee3be6 commit b0f89ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 252 deletions.
244 changes: 0 additions & 244 deletions Tools/CMake/FindFilesystem.cmake

This file was deleted.

8 changes: 0 additions & 8 deletions Tools/Plotfile/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,3 @@ if (AMReX_CUDA)
set_source_files_properties(AMReX_PPMUtil.cpp PROPERTIES LANGUAGE CUDA)
target_compile_features(fsnapshot PUBLIC cxx_std_17)
endif()

# fgradient uses std::filesystem and GCC < 9 needs special treatment for std::filesystem
if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0.0"))
find_package(Filesystem)
if (CXX_FILESYSTEM_HAVE_FS)
target_link_libraries(fgradient PRIVATE std::filesystem)
endif()
endif()

0 comments on commit b0f89ca

Please sign in to comment.