-
Notifications
You must be signed in to change notification settings - Fork 986
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
rename ConanFileInterface.new_cpp_info #9800
Merged
memsharded
merged 3 commits into
conan-io:develop
from
memsharded:feature/rename_new_cpp_info
Oct 15, 2021
Merged
rename ConanFileInterface.new_cpp_info #9800
memsharded
merged 3 commits into
conan-io:develop
from
memsharded:feature/rename_new_cpp_info
Oct 15, 2021
Conversation
This file contains 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
memsharded
commented
Oct 14, 2021
if ret: | ||
return ret | ||
ret = conanfile.new_cpp_info.get_property("cmake_file_name", "CMakeDeps") | ||
if not ret: |
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.
This is important, if we want to follow this approach, we cannot keep the compatibility with the legacy filename
and names
approaches, must use properties. I am fine with this.
lasote
approved these changes
Oct 15, 2021
czoido
approved these changes
Oct 15, 2021
memsharded
added a commit
to memsharded/conan
that referenced
this pull request
Oct 22, 2021
* rename ConanFileInterface.new_cpp_info * wip * wip
memsharded
added a commit
that referenced
this pull request
Oct 25, 2021
…st profile and win_bash (#9755) * tests that prove bad behavior * wip * workaround for win_bash for .bat files * wip * wip * removed printing traceback * fixing tests * fixing tests * fix test * try fix py27 * wip * wip * Update conan/tools/env/environment.py Co-authored-by: Luis Martinez de Bartolome Izquierdo <[email protected]> * Update conan/tools/microsoft/subsystems.py Co-authored-by: Luis Martinez de Bartolome Izquierdo <[email protected]> * Fix unsafe check of the compiler in the CMakeToolchain generator (#9801) The compiler variable here must not be a NoneType object to use `in`. This will result in an error when attempting to package a header-only library. This commit fixes this check. It first verifies the compiler is not None before checking it. * Fix typo where fPIC option is not templated, so it is always enabled (#9752) * Fix typo where fPIC option is not templated, so it is always enabled * Fix typo where fPIC option is not templated, so it is always enabled * Add name to contributors * Don't add fPIC functionality when it is not set * Add unit tests * Remove extra newlines * Use "ON" and "OFF" for fPIC value in CMake * Fix typos * Correctly setup options for ConanFile Mocks * Add missing fixture annotations * Initialize options and default options dictionaries and fix Windows test * Properly check if the OS is Windows * Fix more typos * Make sure to set OS as Windows for unit test ConanFiles * Revert "Properly check if the OS is Windows" This reverts commit 7eebbde. * rename ConanFileInterface.new_cpp_info (#9800) * rename ConanFileInterface.new_cpp_info * wip * wip * fix policy=never (#9817) * Feature: create alias targets (#8533) * - CMakeDeps: add cmake_target_aliases property Signed-off-by: SSE4 <[email protected]> * - automatically deduce an alias target Signed-off-by: SSE4 <[email protected]> * Update conans/test/functional/toolchains/cmake/cmakedeps/test_cmakedeps_aliases.py Co-authored-by: Luis Martinez de Bartolome Izquierdo <[email protected]> * Update conans/test/functional/toolchains/cmake/cmakedeps/test_cmakedeps_aliases.py Co-authored-by: Luis Martinez de Bartolome Izquierdo <[email protected]> * - add comment Signed-off-by: SSE4 <[email protected]> * - use cpp_info instead of new_cpp_info Signed-off-by: SSE4 <[email protected]> * - remove useless checks Signed-off-by: SSE4 <[email protected]> * - show a warning if target already exists Signed-off-by: SSE4 <[email protected]> * - test case for cmake_target_name/cmake_target_namespace Signed-off-by: SSE4 <[email protected]> Co-authored-by: Luis Martinez de Bartolome Izquierdo <[email protected]> * Fix pkgconfig tests for Windows (#9833) * Fixed all the tests in Windows * Added mingw32-g++ tool for Windows * Get rid of mingw32-g++ specific tool * Changed appending symbol to overwriting one * renaming to scope * more scopes * fix test * Update conans/test/integration/toolchains/env/test_virtualenv_winbash.py Co-authored-by: Carlos Zoido <[email protected]> Co-authored-by: Luis Martinez de Bartolome Izquierdo <[email protected]> Co-authored-by: Jordan Williams <[email protected]> Co-authored-by: SSE4 <[email protected]> Co-authored-by: Francisco Ramírez <[email protected]> Co-authored-by: Carlos Zoido <[email protected]>
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.
Changelog: Fix: Rename
ConanFileInterface.new_cpp_info
toConanFileInterface.cpp_info
(being it aNewCppInfo
object). TheConanFileInterface
object is only used when accessingself.dependencies
in a conanfile, so we can make sure that the new develop generators use the finalcpp_info
name.Docs: conan-io/docs#2280
#tags: slow