Repository navigation
Conversation
Follow-up to 14a709a libssh2#1686
Follow-up to a8e4456 libssh2#1575
vszakats
marked this pull request as draft
September 28, 2025 00:50
This reverts commit a3b5bfc.
Follow-up to 854cfa8 libssh2#1524
vszakats
marked this pull request as ready for review
September 28, 2025 23:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
prefer
set_property()overtarget_compile_options(), to usethe modern style.
Follow-up to 8017592 cmake: add
HIDE_SYMBOLSoption & do symbol hiding on *nix #939prefer to append to compiler/linker options in examples/tests.
To prevent accidentally overriding a previously set option.
Follow-up to 14a709a cmake: pass picky C options to C targets only (and not to C++ ossfuzz) #1686
Follow-up to 854cfa8 build: prepare builds for clang-cl, add cmake ossfuzz support #1524
replace
LINK_FLAGSwithLINK_OPTIONSthat superceded it, forCMake 3.13+.
Follow-up to 854cfa8 build: prepare builds for clang-cl, add cmake ossfuzz support #1524
https://cmake.org/cmake/help/v4.1/prop_tgt/LINK_OPTIONS.html
Previously on first iteration, that turned out to be a false track:
(This was wrong:
COMPILE_OPTIONSis supported sincemuch earlier for directories and builds targets.)
COMPILE_OPTIONSrequires 3.11+:https://cmake.org/cmake/help/v3.19/prop_sf/COMPILE_OPTIONS.html
Replace it with
target_compile_options()which was already used inthe code, and
add_compile_options():https://cmake.org/cmake/help/v3.7/command/target_compile_options.html
https://cmake.org/cmake/help/v3.7/command/add_compile_options.html
Another alternative would be to use
COMPILE_FLAGS, but it requiresa space-separated string of options, which is inconvenient:
https://cmake.org/cmake/help/v3.7/prop_sf/COMPILE_FLAGS.html
Follow-up to a8e4456 #1575
Follow-up to 14a709a #1686
w/o sp https://github.com/libssh2/libssh2/pull/1690/files?w=1
target_compile_options()for 3.11+ with the modern alternative.