-
Notifications
You must be signed in to change notification settings - Fork 22
ament build fails to find solution file when cmake project name differs from package manifest name #163
Comments
No, but it is common practice. If you didn't use a I'm not sure if there is a way for us to "guess" the right solution file name each time. I guess we could do:
|
The package manifest is the only reliable source for the package name in this case. I think it must match the project name used in CMake.
The question is why should the name in the manifest not match the CMake project name? If I remember correctly we had a similar discussion before on some bitbucket ticket that adding the major version to the project name is a "weird" choice and that you could use the version information to query a specific version of the CMake package rather than appending the major version to the project name. We also don't plan to support |
I will close this for now since I don't expect that we will support two different names for a package (manifest name being different than e.g. CMake project name). Please feel free to continue commenting here. |
Sorry for replying to this old issue. Actually, I ran into a similar problem while trying to release libg2o into ROS2. I am trying to port the Bloom-ReleaseThirdParty workflow to ament. The original 3rd party package uses Has anyone already had experience with 3rd party packages, or is there already a best practice? edit: this in fact concerns ament_cmake instead of ament_tools. I can open a new issue there, but depending on the topic and discussion I placed it here for now... |
I was just attempting to build ign-math (cmake project name
ignition-math4
) with this package.xml file (package nameign_math
) in an ament workspace on windows 10 with VS 2017. I was getting build failuresexpected str instance, NoneType found
, that I traced to a missing solution file, which is namedignition-math4.sln
. I modified the package.xml name to beignition-math4
and then it worked.Is this a strict requirement that the cmake project name must match the package.xml name?
The text was updated successfully, but these errors were encountered: