mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
CMake: Turn off plugins if building statically
This commit is contained in:
parent
046846ecb4
commit
77ff561b13
@ -627,8 +627,11 @@ endif()
|
||||
# Try to enable NCZarr zip support
|
||||
option(ENABLE_NCZARR_ZIP "Enable NCZarr ZIP support." OFF)
|
||||
|
||||
include(CMakeDependentOption)
|
||||
|
||||
# libdl is always available; built-in in Windows and OSX
|
||||
option(ENABLE_PLUGINS "Enable dynamically loaded plugins (default on)." ON)
|
||||
cmake_dependent_option(ENABLE_PLUGINS "Enable dynamically loaded plugins (default on)."
|
||||
ON "BUILD_SHARED_LIBS" OFF)
|
||||
if(MINGW)
|
||||
set(ENABLE_PLUGINS OFF CACHE BOOL "Disable plugins" FORCE)
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user