Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Feb 5, 2022
1 parent cee8d17 commit dcaf25e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions source/utils/adios_iotest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/iotest-config
)

add_executable(adios_iotest settings.cpp decomp.cpp processConfig.cpp ioGroup.cpp stream.cpp adiosStream.cpp adios_iotest.cpp)
target_link_libraries(adios_iotest adios2::cxx11_mpi MPI::MPI_C)
target_link_libraries(adios_iotest adios2::cxx11_mpi MPI::MPI_C adios2_core_mpi)
if(WIN32)
target_link_libraries(adios_iotest getopt)
endif()
set_property(TARGET adios_iotest PROPERTY OUTPUT_NAME adios2_iotest${ADIOS2_EXECUTABLE_SUFFIX})

if(ADIOS2_HAVE_HDF5 AND HDF5_IS_PARALLEL)
target_compile_definitions(adios_iotest PRIVATE ADIOS2_HAVE_HDF5_PARALLEL)

if(HDF5_C_INCLUDE_DIRS)
target_include_directories(adios_iotest PRIVATE ${HDF5_C_INCLUDE_DIRS})
else()
Expand All @@ -26,19 +27,13 @@ if(ADIOS2_HAVE_HDF5 AND HDF5_IS_PARALLEL)

target_link_libraries(adios_iotest ${HDF5_C_LIBRARIES})

if(ADIOS2_HAVE_MPI)
target_link_libraries(adios_iotest ${HDF5_C_LIBRARIES} adios2_core_mpi)
else()
target_link_libraries(adios_iotest ${HDF5_C_LIBRARIES} adios2_core)
endif()

endif()


install(TARGETS adios_iotest EXPORT adios2
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT adios2_tools-runtime
)

install(DIRECTORY iotest-config/
install(DIRECTORY iotest-config/
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/iotest-config COMPONENT adios2_tools-data
)

0 comments on commit dcaf25e

Please sign in to comment.