mirror of
https://github.com/libssh2/libssh2.git
synced 2025-10-24 14:53:03 +03:00
cmake: small tidy-ups
- say "Absolute path" for include and library paths in Find modules. - flatten an if tree. - fix a typo in comment. Closes #1732
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
#
|
||||
# Input variables:
|
||||
#
|
||||
# - `LIBGCRYPT_INCLUDE_DIR`: The Libgcrypt include directory.
|
||||
# - `LIBGCRYPT_LIBRARY`: Path to `libgcrypt` library.
|
||||
# - `LIBGCRYPT_INCLUDE_DIR`: Absolute path to Libgcrypt include directory.
|
||||
# - `LIBGCRYPT_LIBRARY`: Absolute path to `libgcrypt` library.
|
||||
#
|
||||
# Defines:
|
||||
#
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#
|
||||
# Input variables:
|
||||
#
|
||||
# - `MBEDTLS_INCLUDE_DIR`: The mbedTLS include directory.
|
||||
# - `MBEDCRYPTO_LIBRARY`: Path to `mbedcrypto` library.
|
||||
# - `MBEDTLS_INCLUDE_DIR`: Absolute path to mbedTLS include directory.
|
||||
# - `MBEDCRYPTO_LIBRARY`: Absolute path to `mbedcrypto` library.
|
||||
#
|
||||
# Defines:
|
||||
#
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#
|
||||
# Input variables:
|
||||
#
|
||||
# - `WOLFSSL_INCLUDE_DIR`: The wolfSSL include directory.
|
||||
# - `WOLFSSL_LIBRARY`: Path to `wolfssl` library.
|
||||
# - `WOLFSSL_INCLUDE_DIR`: Absolute path to wolfSSL include directory.
|
||||
# - `WOLFSSL_LIBRARY`: Absolute path to `wolfssl` library.
|
||||
#
|
||||
# Defines:
|
||||
#
|
||||
|
||||
@@ -14,13 +14,11 @@ option(PICKY_COMPILER "Enable picky compiler options" ON)
|
||||
if(ENABLE_WERROR)
|
||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
|
||||
set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
|
||||
else()
|
||||
if(MSVC)
|
||||
elseif(MSVC)
|
||||
list(APPEND _picky_nocheck "-WX")
|
||||
else() # llvm/clang and gcc style options
|
||||
else() # llvm/clang and gcc-style options
|
||||
list(APPEND _picky_nocheck "-Werror")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if((CMAKE_C_COMPILER_ID STREQUAL "GNU" AND
|
||||
CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 5.0) OR
|
||||
|
||||
Reference in New Issue
Block a user