File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1- app /
2- .cache /
3- kind.txt
4- cmake_install.cmake
1+ bin /
2+ .cache
53
64* .pyd
75__pycache__ /
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ matrix:
2424 - brew install hdf5 > /dev/null
2525
2626install :
27- - cd app
28- - cmake ../src
27+ - cd bin
28+ - cmake ..
2929- cmake --build .
3030
3131script : ctest --output-on-failure
Original file line number Diff line number Diff line change 1+ find_package (HDF5 REQUIRED COMPONENTS Fortran Fortran_HL)
2+
3+ set (CMAKE_REQUIRED_INCLUDES ${HDF5_INCLUDE_DIRS} ${HDF5_Fortran_INCLUDE_DIRS} )
4+ set (CMAKE_REQUIRED_LIBRARIES ${HDF5_Fortran_LIBRARIES} ${HDF5_Fortran_HL_LIBRARIES} )
5+ check_fortran_source_compiles("
6+ program a
7+ use h5lt
8+ end"
9+ hasHDF5
10+ SRC_EXT f90)
11+
12+ if (NOT hasHDF5)
13+ message (FATAL_ERROR "HDF5 library not working with ${CMAKE_Fortran_COMPILER_ID} ${CMAKE_Fortran_COMPILER_VERSION} " )
14+ endif ()
You can’t perform that action at this time.
0 commit comments