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: # Input variables:
# #
# - `LIBGCRYPT_INCLUDE_DIR`: The Libgcrypt include directory. # - `LIBGCRYPT_INCLUDE_DIR`: Absolute path to Libgcrypt include directory.
# - `LIBGCRYPT_LIBRARY`: Path to `libgcrypt` library. # - `LIBGCRYPT_LIBRARY`: Absolute path to `libgcrypt` library.
# #
# Defines: # Defines:
# #

View File

@@ -6,8 +6,8 @@
# #
# Input variables: # Input variables:
# #
# - `MBEDTLS_INCLUDE_DIR`: The mbedTLS include directory. # - `MBEDTLS_INCLUDE_DIR`: Absolute path to mbedTLS include directory.
# - `MBEDCRYPTO_LIBRARY`: Path to `mbedcrypto` library. # - `MBEDCRYPTO_LIBRARY`: Absolute path to `mbedcrypto` library.
# #
# Defines: # Defines:
# #

View File

@@ -6,8 +6,8 @@
# #
# Input variables: # Input variables:
# #
# - `WOLFSSL_INCLUDE_DIR`: The wolfSSL include directory. # - `WOLFSSL_INCLUDE_DIR`: Absolute path to wolfSSL include directory.
# - `WOLFSSL_LIBRARY`: Path to `wolfssl` library. # - `WOLFSSL_LIBRARY`: Absolute path to `wolfssl` library.
# #
# Defines: # Defines:
# #

View File

@@ -14,12 +14,10 @@ option(PICKY_COMPILER "Enable picky compiler options" ON)
if(ENABLE_WERROR) if(ENABLE_WERROR)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24) if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
set(CMAKE_COMPILE_WARNING_AS_ERROR ON) set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
else() elseif(MSVC)
if(MSVC) list(APPEND _picky_nocheck "-WX")
list(APPEND _picky_nocheck "-WX") else() # llvm/clang and gcc-style options
else() # llvm/clang and gcc style options list(APPEND _picky_nocheck "-Werror")
list(APPEND _picky_nocheck "-Werror")
endif()
endif() endif()
if((CMAKE_C_COMPILER_ID STREQUAL "GNU" AND if((CMAKE_C_COMPILER_ID STREQUAL "GNU" AND