From 560d972580ff681eae102416ae4abf2bbbc03e04 Mon Sep 17 00:00:00 2001 From: Alexander Moriarty Date: Sun, 22 Oct 2017 20:43:23 +0200 Subject: [PATCH] Fix CMake Error: xmlrpcvalue_base64 not built by.. 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. --- utilities/xmlrpcpp/test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utilities/xmlrpcpp/test/CMakeLists.txt b/utilities/xmlrpcpp/test/CMakeLists.txt index bb3a54093c..a996bf5e8f 100644 --- a/utilities/xmlrpcpp/test/CMakeLists.txt +++ b/utilities/xmlrpcpp/test/CMakeLists.txt @@ -1,2 +1,4 @@ catkin_add_gtest(xmlrpcvalue_base64 xmlrpcvalue_base64.cpp) -target_link_libraries(xmlrpcvalue_base64 xmlrpcpp) +if(TARGET xmlrpcvalue_base64) + target_link_libraries(xmlrpcvalue_base64 xmlrpcpp) +endif()