]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: allow empty custom `IMPORT_LIB_SUFFIX`, add suffix collision detection
authorViktor Szakats <commit@vsz.me>
Fri, 14 Feb 2025 10:35:12 +0000 (11:35 +0100)
committerViktor Szakats <commit@vsz.me>
Sun, 16 Feb 2025 01:03:16 +0000 (02:03 +0100)
commit1b873579671a152edca021f69bc2e4b39f8b69ad
tree0b3971782e804c974e3e26ac0f03b1bb51083aa2
parente7adf3e83747c2915c671f2e560cde6f3d4a4905
cmake: allow empty custom `IMPORT_LIB_SUFFIX`, add suffix collision detection

Allow overriding the `IMPORT_LIB_SUFFIX` default with an empty value.

Also:
- add a fatal error if the implib and static lib filename are identical.
- clarify `IMPORT_LIB_SUFFIX` default value in the documentation.

Reported-by: RubisetCie on Github
Fixes #16324
Ref: 1199308dbc902c52be67fc805c72dd2582520d30 #11505

Closes #16332
docs/INSTALL-CMAKE.md
lib/CMakeLists.txt