Skip to content
Snippets Groups Projects
Commit 77d82b20 authored by Podhorszki, Norbert's avatar Podhorszki, Norbert
Browse files

Add adios1::adios dependency only to the MPI build for now, but not to the NOMPI build

parent 5bd11bfa
No related branches found
No related tags found
1 merge request!43Adios1 cleanup
......@@ -40,16 +40,6 @@ foreach(adios2_target IN LISTS adios2_targets)
PUBLIC ${ADIOS_SOURCE_DIR}/include
)
if(ADIOS_USE_ADIOS1)
find_package(ADIOS REQUIRED)
target_sources(${adios2_target} PRIVATE
engine/adios1/ADIOS1Reader.cpp
engine/adios1/ADIOS1Writer.cpp
)
target_compile_definitions(${adios2_target} PRIVATE ADIOS_HAVE_ADIOS1)
target_link_libraries(${adios2_target} PRIVATE adios::adios)
endif()
if(ADIOS_USE_DataMan)
find_package(DataMan REQUIRED)
target_sources(${adios2_target} PRIVATE
......@@ -79,6 +69,14 @@ if(ADIOS_USE_MPI)
target_include_directories(adios2 PUBLIC ${MPI_C_INCLUDE_PATH})
target_compile_definitions(adios2 PUBLIC ADIOS_HAVE_MPI)
target_link_libraries(adios2 PUBLIC ${MPI_C_LIBRARIES})
else()
target_sources(adios2 PRIVATE mpidummy.cpp)
if(ADIOS_USE_ADIOS1)
find_package(ADIOS1 REQUIRED)
target_sources(adios2 PRIVATE
engine/adios1/ADIOS1Reader.cpp
engine/adios1/ADIOS1Writer.cpp
)
target_compile_definitions(adios2 PRIVATE ADIOS_HAVE_ADIOS1)
target_link_libraries(adios2 PRIVATE adios1::adios)
endif()
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment