mirror of
https://github.com/curl/curl.git
synced 2026-04-14 18:31:42 +03:00
cmake: misc tidy-ups
- replace `add_compile_options()`, `add_definitions()` with directory properties. To harmonize this across all scripts. The new commands are verbose, but describe better how they work. The syntax is also closer to setting target properties, helps grepping. - prefer `CMAKE_INSTALL_PREFIX` over `--prefix` (in tests, CI). - tidy up cmake invocations. - formatting. Closes #16238
This commit is contained in:
parent
ca2f49ded0
commit
45f7cb7695
8 changed files with 15 additions and 14 deletions
|
|
@ -56,7 +56,7 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then
|
|||
[ "${PRJ_CFG}" = 'Release' ] && options+=' -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE='
|
||||
[[ "${PRJ_GEN}" = *'Visual Studio'* ]] && options+=' -DCMAKE_VS_GLOBALS=TrackFileAccess=false'
|
||||
# shellcheck disable=SC2086
|
||||
cmake -B "_bld${_chkprefill}" "-G${PRJ_GEN}" ${TARGET} \
|
||||
cmake -B "_bld${_chkprefill}" -G "${PRJ_GEN}" ${TARGET} \
|
||||
-DCURL_USE_OPENSSL="${OPENSSL}" \
|
||||
-DCURL_USE_SCHANNEL="${SCHANNEL}" \
|
||||
-DHTTP_ONLY="${HTTP_ONLY}" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue