-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix zlib packaging on latest conan not renaming binary appropriately #8789
Conversation
Sorry, the build is only launched for Access Request users. You can request access writing in this issue. |
project(cmake_wrapper) | ||
|
||
cmake_policy(SET CMP0091 NEW) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake_policy(SET CMP0091 NEW) |
useless, conan_basic_setup()
takes care of vc runtime regardless of the policy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without it the compiler will complain about an undefined /static
command line argument and iirc not produce the correct output.
It's a fix for compiler=msvc in profile actually. |
@@ -1,6 +1,7 @@ | |||
cmake_minimum_required(VERSION 2.8) | |||
cmake_minimum_required(VERSION 3.15) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake_minimum_required(VERSION 3.15) | |
cmake_minimum_required(VERSION 2.8) |
2.8 is fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not, due to the cmake_policy requirement, which was added in 3.15 (according to a quick Google search)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know but conan_basic_setup()
should take care of vc runtime regardless of CMP0091 policy. If you bump to 3.15, you don't need to force CMP0091 to NEW anyway because it would be the default behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, maybe it's a conan issue.
@memsharded @lasote @czoido, is new msvc compiler type compatible with old CMake helper + conan_basic_setup()? Does it properly define CONAN_LINK_RUNTIME
so that conan_set_vs_runtime()
can work as expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is new msvc compiler type compatible with old CMake helper + conan_basic_setup()?
I would say it was fixed at Conan 1.43.2 (https://github.com/conan-io/conan/pull/10195/files) At this time we are running 1.43.1 here. (soon will be an upgrade to 1.43.3 with some backports from 1.44.1)
That's what conan generates.
|
I detected other pull requests that are modifying zlib/all recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@FSil3ntStorm there are conflicts, please rebase |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions. |
Specify library name and version: zlib/1.2.11
Update the recipe to rename files properly from the utterly stupid names produced by zlib build scripts.
Fixes #8788
conan-center hook activated.