Skip to content

cmake: SHARE_LIB_OBJECT=ON requires CMake 3.12 or newer - #16376

Closed
vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:cm-old-shared-obj
Closed

vszakats wants to merge 3 commits into
curl:masterfrom
vszakats:cm-old-shared-obj

Conversation

@vszakats

@vszakats vszakats commented Feb 18, 2025 •

Copy link
Copy Markdown
Member

This feature requires Object Libraries which is supported by CMake 3.12
or newer: https://cmake.org/cmake/help/latest/release/3.12.html

Keep it permanently disabled for older CMake versions.
Also document it in docs/INSTALL-CMAKE.md.

Ref: https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html#object-libraries

Follow-up to fc9bfb1 #11627
Follow-up to 2ebc74c #11546

Reported-by: Mark Phillips
Fixes #16375

@vszakats vszakats added the cmake label Feb 18, 2025
@github-actions github-actions Bot added the build label Feb 18, 2025
@vszakats vszakats closed this in f7fcbb8 Feb 18, 2025
@vszakats
vszakats deleted the cm-old-shared-obj branch February 18, 2025 14:06
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
This feature requires Object Libraries which is supported by CMake 3.12
or newer: https://cmake.org/cmake/help/latest/release/3.12.html

Keep it permanently disabled for older CMake versions.
Also document it in `docs/INSTALL-CMAKE.md`.

Ref: https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html#object-libraries

Follow-up to fc9bfb1 curl#11627
Follow-up to 2ebc74c curl#11546

Reported-by: Mark Phillips
Fixes curl#16375
Closes curl#16376
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.

CMake <3.12 fails on Windows with 'Object library target "libcurl_object" may not link to anything.' error

1 participant