-
Notifications
You must be signed in to change notification settings - Fork 993
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
Management of GNU installation vars in CMake and Autotools #3599
Merged
+172
−25
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
83f1bea
Added --libdir parameter to autotools configure
danimtb 5393688
Merge branch 'develop' into feature/3369_autotools_libdir
danimtb 0e4c06f
Added test
danimtb 31cd7c7
Merge branch 'feature/3369_autotools_libdir' into feature/3594
danimtb caff5ed
Added GNU installation vars in cmake and atools
danimtb c7c2e72
Added tests for atools
danimtb 722deb1
added cmake install definitions test
danimtb 2f0aea8
Merge branch 'develop' into feature/3594
danimtb 04ef814
Included real autotools test
danimtb 6ea7d4e
fix skipunless
danimtb cb36599
same package ID in test
danimtb 432acba
remove repeted libdir adjustment as per review
danimtb f0008ed
Merge branch 'develop' into feature/3594
danimtb be0f168
opt-out for default installation dirs in autotools
danimtb 13019bd
renamed to use_default_install_dirs
danimtb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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.
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.
any reason to use "res" instead of "share" for datarootdir? I would expect it will require lots of programs to change location then
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.
"res" is the default folder name for resources and data files in
self.cpp_info
https://docs.conan.io/en/latest/reference/conanfile/methods.html#cpp-infoThere 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.
in this case, may be it's better to add "shared" as a secondary default in addition to the existing "res"? "res" sounds to be too foreign for autotools-based installations.
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.
Often CMake package-config files are installed to
/share
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake/${PROJECT_NAME} )
With this change, they are installed to
/res
which is not a default search path of the CMakefind_package
command: https://cmake.org/cmake/help/v3.12/command/find_package.html?highlight=find_packageHence, packages are not found anymore if included via
conan_basic_setup()
!!!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.
You were right, I am proposing a fix for this in #3705
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.
Great - many thanks!