-
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
Add ignition-cmake #3268
Add ignition-cmake #3268
Conversation
Some configurations of 'ignition-cmake/2.5.0' failed in build 1 (
|
I'm not sure how to package |
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Recipe syntax error in build 5:
|
You might also want to add the cmake patch that I added to |
Some configurations of 'ignition-cmake/2.5.0' failed in build 6 (
|
Some configurations of 'ignition-cmake/2.5.0' failed in build 7 (
|
Some configurations of 'ignition-cmake/2.5.0' failed in build 8 (
|
See joxoby#3 |
Failure in build 9 (
|
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Some configurations of 'ignition-cmake/2.5.0' failed in build 10 (
|
To get rid of the hook error, you will need to open a pull request at the hooks repo, adding the name of this recipe here: |
|
homepage = "https://github.com/ignitionrobotics/ign-cmake" | ||
description = "A set of CMake modules that are used by the C++-based Ignition projects." | ||
topics = ("ignition", "robotics", "cmake") | ||
settings = "os", "compiler", "build_type", "arch" |
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.
Hard to see on mobile but I believe the settings are not used.. can they be removed in this case?
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 think so. Will remove.
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, the cmake script builds a test library.
I left it in to be certain it would select the correct toolchain.
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.
Removing settings
results in error:
ignition-cmake/2.5.0: ERROR: Generator cmake_find_package_multi(file:None) failed
'settings.build_type' doesn't exist
'settings' possible configurations are none
ERROR: 'settings.build_type' doesn't exist
'settings' possible configurations are none
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 think you can remove cmake_find_package
from generators
.
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 currently not part of generators
. You mean line:
self.cpp_info.names["cmake_find_package"] = "ignition-cmake{}".format(version_major)
?
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
Some configurations of 'ignition-cmake/2.5.0' failed in build 11 (
|
self.cpp_info.builddirs = [ | ||
os.path.join("lib", "cmake", "ignition-cmake{}".format(version_major)), | ||
os.path.join("lib", "cmake", "ignition-cmake{}".format(version_major), "cmake{}".format(version_major)), | ||
] |
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 have to pass build_modules:
self.cpp_info.builddirs = [cmake_base_path] |
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 tried with:
def package_info(self):
version_major = tools.Version(self.version).major
self.cpp_info.names["cmake_find_package"] = "ignition-cmake{}".format(version_major)
self.cpp_info.names["cmake_find_package_multi"] = "ignition-cmake{}".format(version_major)
cmake_base_path = os.path.join("lib", "cmake", "ignition-cmake{}".format(version_major), "cmake{}".format(version_major))
self.cpp_info.builddirs = [
os.path.join("lib", "cmake", "ignition-cmake{}".format(version_major)),
cmake_base_path,
]
for cmake_file in glob.glob("{}/*.cmake".format(cmake_base_path)):
self.cpp_info.build_modules.append(cmake_file)
But adding the last for
loop results in an error during the test_package
:
CMake Error at /home/juan/.conan/data/ignition-cmake/2.5.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/lib/cmake/ignition-cmake2/cmake2/IgnPkgConfig.cmake:75 (_ign_cmake_parse_arguments):
Unknown CMake command "_ign_cmake_parse_arguments".
Call Stack (most recent call first):
/home/juan/.conan/data/ignition-cmake/2.5.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/lib/cmake/ignition-cmake2/cmake2/FindAVCODEC.cmake:19 (ign_pkg_check_modules_quiet)
build/8e7da137254ca61c29cfd61de2482b72ba0ff99c/conanbuildinfo.cmake:857 (include)
build/8e7da137254ca61c29cfd61de2482b72ba0ff99c/conanbuildinfo.cmake:335 (conan_include_build_modules)
CMakeLists.txt:5 (conan_basic_setup)
-- Configuring incomplete, errors occurred!
This reverts commit 96b2ed3.
Some configurations of 'ignition-cmake/2.5.0' failed in build 13 (
|
All green in build 14 (
|
Just checking if we are waiting for something in particular to move forward |
I don't really like these files in the package:
They are used to finding dependencies of ignition libraries. But I checked, through grep, that the generated package contains no absolute path to the build machine. |
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.
Given the size of this library I think revisiting the packaged FindXXX.cmake
is reasonable. This PR is complete and getting stale!
Should we move forward? |
Tag some extra reviewers, see if we can get some action here... |
Specify library name and version: ignition-cmake/2.5.0
conan-center hook activated.