Skip to content

Commit

Permalink
removing FindADIOS2.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
seegyoung committed Jan 25, 2025
1 parent 6abf57a commit d7a31ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 113 deletions.
104 changes: 0 additions & 104 deletions cmake/FindADIOS2.cmake

This file was deleted.

12 changes: 3 additions & 9 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,7 @@ endif()
message(STATUS "Omega_h_USE_ADIOS2: ${Omega_h_USE_ADIOS2}")
if(Omega_h_USE_ADIOS2)
list(APPEND Omega_h_SOURCES Omega_h_adios2.cpp)
#Is there a better way? I assume CMAKE_MODULE_PATH was purposely not set in
# the top level CMakeLists.txt
set(OLD_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
find_package(ADIOS2 MODULE REQUIRED)
set(CMAKE_MODULE_PATH ${OLD_CMAKE_MODULE_PATH})
find_package(ADIOS2 REQUIRED)
endif()

if(Omega_h_USE_SEACASExodus)
Expand Down Expand Up @@ -238,11 +233,10 @@ if(Omega_h_USE_SimModSuite)
endif()

if(Omega_h_USE_ADIOS2)
set(ADIOS_REQUIRED_VERSION 2.10)
if (Omega_h_USE_MPI)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DADIOS2_USE_MPI")
target_include_directories(omega_h PUBLIC "${ADIOS2_INCLUDE_DIR}")
target_link_libraries(omega_h PUBLIC "${ADIOS2_LIBS}")
target_include_directories(omega_h PRIVATE "${ADIOS2_INCLUDE_DIRS}")
target_link_libraries(omega_h PUBLIC "${ADIOS2_LIBRARIES}")
else()
message("set Omega_h_USE_MPI to use ADIOS2")
endif()
Expand Down

0 comments on commit d7a31ea

Please sign in to comment.