Skip to content

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Feb 7, 2025

  • 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.


  • further split to separate PRs.

@testclutch

This comment was marked as outdated.

@github-actions github-actions bot added the CI Continuous Integration label Feb 7, 2025
@vszakats vszakats force-pushed the cm-tidy branch 4 times, most recently from ca0f433 to cbd5bb8 Compare February 8, 2025 16:02
@vszakats
Copy link
Member Author

vszakats commented Feb 8, 2025

First time seen and it's repeating:
curl: (35) schannel: next InitializeSecurityContext failed: CRYPT_E_REVOCATION_OFFLINE (0x80092013) - The revocation function was unable to check revocation because the revocation server was offline.
Error: Process completed with exit code 35.

Happens when downloading a release binary from github.com.

@vszakats vszakats marked this pull request as ready for review February 16, 2025 02:14
@vszakats vszakats changed the title [WIP] cmake: misc tidy-ups cmake: misc tidy-ups Feb 16, 2025
@vszakats vszakats closed this in 45f7cb7 Feb 16, 2025
@vszakats vszakats deleted the cm-tidy branch February 16, 2025 02:38
vszakats added a commit to vszakats/curl that referenced this pull request Apr 8, 2025
vszakats added a commit to vszakats/curl that referenced this pull request Apr 8, 2025
vszakats added a commit that referenced this pull request Apr 8, 2025
To use more modern cmake, and make it somewhat more obvious where these
header directories should apply.

Also move setting the directory property _before_ defining targets,
to make them inherit this directory property.

Ref: https://cmake.org/cmake/help/latest/command/include_directories.html
Ref: https://cmake.org/cmake/help/latest/prop_dir/INCLUDE_DIRECTORIES.html

Follow-up to 45f7cb7 #16238

Closes #16993
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
To use more modern cmake, and make it somewhat more obvious where these
header directories should apply.

Also move setting the directory property _before_ defining targets,
to make them inherit this directory property.

Ref: https://cmake.org/cmake/help/latest/command/include_directories.html
Ref: https://cmake.org/cmake/help/latest/prop_dir/INCLUDE_DIRECTORIES.html

Follow-up to 45f7cb7 curl#16238

Closes curl#16993
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
To use more modern cmake, and make it somewhat more obvious where these
header directories should apply.

Also move setting the directory property _before_ defining targets,
to make them inherit this directory property.

Ref: https://cmake.org/cmake/help/latest/command/include_directories.html
Ref: https://cmake.org/cmake/help/latest/prop_dir/INCLUDE_DIRECTORIES.html

Follow-up to 45f7cb7 curl#16238

Closes curl#16993
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
- 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 curl#16238
vszakats added a commit to vszakats/curl that referenced this pull request Sep 28, 2025
Follow-up to 45f7cb7 curl#16238
vszakats added a commit to vszakats/curl that referenced this pull request Sep 28, 2025
Follow-up to 45f7cb7 curl#16238
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants