mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
CMake: Require pnetcdf if requested
This commit is contained in:
parent
20954a7e1b
commit
425d38ac4f
@ -631,13 +631,8 @@ ENDIF(ENABLE_LIBXML2)
|
||||
# parallel IO
|
||||
################################
|
||||
IF(ENABLE_PNETCDF)
|
||||
find_package(PNETCDF 1.6.0)
|
||||
IF(PNETCDF_FOUND)
|
||||
set(USE_PNETCDF ON CACHE BOOL "")
|
||||
else()
|
||||
message(STATUS "Cannot find PnetCDF library. Disabling PnetCDF support.")
|
||||
set(USE_PNETCDF OFF CACHE BOOL "")
|
||||
ENDIF()
|
||||
find_package(PNETCDF 1.6.0 REQUIRED)
|
||||
set(USE_PNETCDF ON CACHE BOOL "")
|
||||
include_directories(${PNETCDF_INCLUDE_DIR})
|
||||
ENDIF()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user