Skip to content
Snippets Groups Projects
Commit 7aa43da1 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Renamed check_include_files to check_include_file

parent b6d5dbac
No related branches found
No related tags found
1 merge request!113Renamed check_include_files to check_include_file
Pipeline #94035 passed
cmake_minimum_required( VERSION 3.30 FATAL_ERROR )
project(libcdi VERSION 2.4.0 LANGUAGES C )
project(libcdi VERSION 2.5.1 LANGUAGES C )
set(CMAKE_C_STANDARD 11)
include(CheckIncludeFile)
......@@ -10,18 +10,11 @@ configure_file (
"${PROJECT_SOURCE_DIR}/src/config.h"
)
find_package(hdf5 REQUIRED)
if(hdf5_FOUND)
message(STATUS "HDF5 shaed found")
else()
message(FATAL_ERROR "HDF shared not found")
endif()
#NetCDF
find_package(netCDF COMPONENTS C REQUIRED)
set(netcdf_flag HAVE_LIBNETCDF)
set(netcdf_flag ${HAVE_LIBNETCDF})
check_include_files("netcdf.h" ${netcdf_flag} C)
check_include_file("netcdf.h" ${netcdf_flag} C)
if (${netCDF_FOUND})
message(STATUS "added compile definition HAVE_LIBNETCDF=${netCDF_FOUND}")
add_compile_definitions(HAVE_LIBNETCDF=${netCDF_FOUND})
......
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