CMake: Make build vars options
This allows distributions to selectively disable some options, such as examples, which aren't present in the zip file due to `.gitattributes` settings.
This commit is contained in:
@@ -105,11 +105,11 @@ include_directories(${LWIP_PORT_DIR}/include)
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Defaults
|
# Defaults
|
||||||
set(ALLOW_INSTALL_TARGET TRUE)
|
option(ALLOW_INSTALL_TARGET "Enable the install target" TRUE)
|
||||||
set(BUILD_STATIC_LIB TRUE)
|
option(BUILD_STATIC_LIB "Build static library" TRUE)
|
||||||
set(BUILD_SHARED_LIB TRUE)
|
option(BUILD_SHARED_LIB "Build shared libary" TRUE)
|
||||||
set(BUILD_HOST_SELFTEST TRUE)
|
option(BUILD_HOST_SELFTEST "Build host selftest binary" TRUE)
|
||||||
set(ZTS_DISABLE_CENTRAL_API TRUE)
|
option(ZTS_DISABLE_CENTRAL_API "Disable central API" TRUE)
|
||||||
|
|
||||||
# C# language bindings (libzt.dll/dylib/so)
|
# C# language bindings (libzt.dll/dylib/so)
|
||||||
if (ZTS_ENABLE_PINVOKE)
|
if (ZTS_ENABLE_PINVOKE)
|
||||||
|
|||||||
Reference in New Issue
Block a user