-
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
expat: fix CMAKE_POLICY_DEFAULT_CMP0042 injection + add test_v1_package #12059
expat: fix CMAKE_POLICY_DEFAULT_CMP0042 injection + add test_v1_package #12059
Conversation
CMAKE_POLICY_DEFAULT_CMP* must be injected with cache_variables, not variables
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 21bf380expat/2.4.5
expat/2.4.7
expat/2.4.3
expat/2.4.8
expat/2.4.2
expat/2.4.6
expat/2.4.4
|
# Generate a relocatable shared lib on Macos | ||
tc.variables["CMAKE_POLICY_DEFAULT_CMP0042"] = "NEW" | ||
tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0042"] = "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.
requires conan 1.50.0: conan-io/conan@a5eab30
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.
Nice piece of work!
recipes/expat/all/conanfile.py
Outdated
if not is_msvc(self): | ||
del self.settings.compiler.libcxx | ||
del self.settings.compiler.libcxx |
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.
my bad, it must be protected with try/except for CONAN_V2 mode: https://docs.conan.io/en/1.51/migrating_to_2.0/recipes.html#settings
All green in build 6 (
|
Hooks produced the following warnings for commit 637e87aexpat/2.4.8
expat/2.4.3
expat/2.4.4
expat/2.4.7
expat/2.4.2
expat/2.4.5
expat/2.4.6
|
Could this PR cause the problem that EXPAT_VERSION is always None now? Project-OSRM/osrm-backend#6299 |
Maybe due to layout usage. There is a fix in conan client : conan-io/conan#11790. |
CMAKE_POLICY_DEFAULT_CMP*
must be injected throughCMakeToolchain
withcache_variables
, notvariables
, otherwise it has no effect.test_v1_package
cmake_layout
(the default one is an in source build, and everything is mixed-up in source & build: patches, source code, build artifacts)