cmake: quotes, whitespace, use VERSION_GREATER_EQUAL

- `NOT` + `VERSION_LESS` -> `VERSION_GREATER_EQUAL`
  Available since 3.7, which is the minimum required for curl:
  https://cmake.org/cmake/help/latest/command/if.html#version-greater-equal
- make `CMAKE_REQUIRED_*` argument quotes consistent.
- make `CMAKE_REQUIRED_*` space alignment consistent.
- drop quote from version value for consistency with other cases.
- formatting

Closes #17002
This commit is contained in:
Viktor Szakats 2025-04-09 00:10:30 +02:00
parent 2485a2d100
commit 6af7ab3b39
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
6 changed files with 50 additions and 53 deletions

View file

@ -90,10 +90,7 @@ add_executable(
)
target_compile_definitions(${EXE_NAME} PRIVATE ${_curl_definitions})
add_executable(
${PROJECT_NAME}::${EXE_NAME}
ALIAS ${EXE_NAME}
)
add_executable(${PROJECT_NAME}::${EXE_NAME} ALIAS ${EXE_NAME})
add_library(
curltool # special libcurltool library just for unittests