Skip to content
Snippets Groups Projects
Commit c06043c4 authored by Lars Bilke's avatar Lars Bilke
Browse files

[Conan] Added NetCDF package.

Added simplified FindNetCDF.cmake to cmake submodule.
Have not tested this with system-installed netcdf.
parent 57fb331d
No related branches found
No related tags found
No related merge requests found
Subproject commit 0068e164eb5ab1e16c931e50094846789b49cdc0
Subproject commit 5893e3eb3aaec104f86ba81ee90b7e9279b74c3f
......@@ -74,6 +74,10 @@ if(OGS_BUILD_GUI)
)
endif()
if(OGS_USE_NETCDF)
set(CONAN_REQUIRES ${CONAN_REQUIRES} netcdf-cxx/4.3.1@bilke/testing)
endif()
conan_check(VERSION 1.3.0)
message(STATUS "Third-party libraries:")
......
......@@ -105,6 +105,12 @@ if(OGS_BUILD_GUI)
endif()
endif()
if(OGS_USE_NETCDF)
set(NETCDF_ROOT ${CONAN_NETCDF-C_ROOT})
set(NETCDF_CXX_ROOT ${CONAN_NETCDF-CXX_ROOT})
find_package(NetCDF REQUIRED)
endif()
# lapack
find_package(LAPACK QUIET)
......
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