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
|
# parallel IO
|
||||||
################################
|
################################
|
||||||
IF(ENABLE_PNETCDF)
|
IF(ENABLE_PNETCDF)
|
||||||
find_package(PNETCDF 1.6.0)
|
find_package(PNETCDF 1.6.0 REQUIRED)
|
||||||
IF(PNETCDF_FOUND)
|
set(USE_PNETCDF ON CACHE BOOL "")
|
||||||
set(USE_PNETCDF ON CACHE BOOL "")
|
|
||||||
else()
|
|
||||||
message(STATUS "Cannot find PnetCDF library. Disabling PnetCDF support.")
|
|
||||||
set(USE_PNETCDF OFF CACHE BOOL "")
|
|
||||||
ENDIF()
|
|
||||||
include_directories(${PNETCDF_INCLUDE_DIR})
|
include_directories(${PNETCDF_INCLUDE_DIR})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user