-
Notifications
You must be signed in to change notification settings - Fork 914
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
Fix CMake Error: xmlrpcvalue_base64 not built by.. #1197
Fix CMake Error: xmlrpcvalue_base64 not built by.. #1197
Conversation
When I stash this change, and run Here is the output:
I was following the http://wiki.ros.org/Installation/Source instructions.
|
@@ -1,2 +1,4 @@ | |||
catkin_add_gtest(xmlrpcvalue_base64 xmlrpcvalue_base64.cpp) | |||
target_link_libraries(xmlrpcvalue_base64 xmlrpcpp) | |||
catkin_add_gtest(${PROJECT_NAME}-xmlrpcvalue_base64 xmlrpcvalue_base64.cpp) |
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.
There is no need to rename the target. Please keep the target babe as is and only wrap the target_link_libraries
in the conditional block.
Error occurs when using catkin-tools or catkin_make_isolated --install. catkin_make_isolated didn't complain without the --install option. CMake Error at .../xmlrpcpp/test/CMakeLists.txt:2 (target_link_libraries): Cannot specify link libraries for target "xmlrpcvalue_base64" which is not built by this project.
34f1906
to
560d972
Compare
@dirk-thomas thanks for the quick feedback, I've made the requested change. |
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.
Thank you for the patch and the update.
Error occurs when using
catkin build
orcatkin_make_isolated --install
.catkin_make_isolated didn't complain without the
--install
option.NOTE: I am running an unsupported distribution, openSUSE Tumbleweed. I checked other packages and saw the gtests were linked similarly and surrounded with an if-statement.