Skip to content

Commit

Permalink
Fix CMake Error: xmlrpcvalue_base64 not built by..
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
moriarty committed Oct 22, 2017
1 parent 34d0237 commit 34f1906
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utilities/xmlrpcpp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
if(TARGET ${PROJECT_NAME}-xmlrpcvalue_base64)
target_link_libraries(${PROJECT_NAME}-xmlrpcvalue_base64 xmlrpcpp)
endif()

0 comments on commit 34f1906

Please sign in to comment.