Skip to content

Commit e97edd6

Browse files
committed
correct p5.h5 path handling
1 parent 5770651 commit e97edd6

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,3 @@ include(cmake/hdf5.cmake)
1212
add_subdirectory(src)
1313

1414
add_subdirectory(tests)
15-
16-
add_executable(shapes_check src/GetShape.f90)
17-
target_link_libraries(shapes_check PRIVATE hdf5oo)
18-
add_test(NAME ShapeCheck COMMAND shapes_check p5.h5 group69/flux_node)
19-
set_tests_properties(ShapeCheck PROPERTIES FIXTURES_REQUIRED h5files)

tests/CMakeLists.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
add_executable(testh5 test_hdf5_ifc.f90)
22
target_link_libraries(testh5 PRIVATE hdf5oo)
33
set_target_properties(testh5 PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR})
4-
add_test(NAME h5oo COMMAND testh5)
5-
set_tests_properties(h5oo PROPERTIES FIXTURES_SETUP h5files)
64
if(${CMAKE_Fortran_COMPILER_ID} STREQUAL GNU)
75
target_compile_options(testh5 PRIVATE -Wno-compare-reals)
86
endif()
7+
8+
add_test(NAME h5oo COMMAND testh5)
9+
set_tests_properties(h5oo PROPERTIES
10+
FIXTURES_SETUP h5files)
11+
12+
13+
add_executable(shapes_check GetShape.f90)
14+
target_link_libraries(shapes_check PRIVATE hdf5oo)
15+
set_target_properties(shapes_check PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR})
16+
17+
add_test(NAME ShapeCheck COMMAND shapes_check ${CMAKE_CURRENT_BINARY_DIR}/p5.h5 group69/flux_node)
18+
set_tests_properties(ShapeCheck PROPERTIES
19+
FIXTURES_REQUIRED h5files
20+
REQUIRED_FILES ${CMAKE_CURRENT_BINARY_DIR}/p5.h5)
File renamed without changes.

0 commit comments

Comments
 (0)