1
0
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:
Viktor Szakats
2025-10-20 23:36:40 +02:00
parent 4ed26f5740
commit 3969991b68
4 changed files with 10 additions and 12 deletions

View File

@@ -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:
#

View File

@@ -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:
#

View File

@@ -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:
#

View File

@@ -14,12 +14,10 @@ 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)
list(APPEND _picky_nocheck "-WX")
else() # llvm/clang and gcc style options
list(APPEND _picky_nocheck "-Werror")
endif()
elseif(MSVC)
list(APPEND _picky_nocheck "-WX")
else() # llvm/clang and gcc-style options
list(APPEND _picky_nocheck "-Werror")
endif()
if((CMAKE_C_COMPILER_ID STREQUAL "GNU" AND