Policy CMP0046 is not set . 错误处理

编译cmd_vel_mux时候给出警告如下:

CMake Warning (dev) at yujin_ocs/yocs_cmd_vel_mux/CMakeLists.txt:31 (add_dependencies):
  Policy CMP0046 is not set: Error on non-existent dependency in
  add_dependencies.  Run "cmake --help-policy CMP0046" for policy details.
  Use the cmake_policy command to set the policy 
Make Error at oryxbot_cruise_ex/CMakeLists.txt:76 (add_executable): Cannot find source file: src/pid_controller.cpp Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx CMake Warning (dev) at oryxbot_description/CMakeLists.txt:62 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "swiftpro_control_generate_messages_cpp" of target "pose_swiftpro" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at oryxbot_description/CMakeLists.txt:63 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "swiftpro_control_generate_messages_cpp" of target "pick_ar_gazebo" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at oryxbot_description/CMakeLists.txt:61 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "swiftpro_control_generate_messages_cpp" of target "simple_picker" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at oryxbot_description/CMakeLists.txt:59 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "swiftpro_control_generate_messages_cpp" of target "ik_swiftpro" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at oryxbot_description/CMakeLists.txt:58 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "swiftpro_control_generate_messages_cpp" of target "fk_swiftpro" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at oryxbot_description/CMakeLists.txt:60 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "swiftpro_control_generate_messages_cpp" of target "home_pose" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Error: CMake can not determine linker language for target: oryxbot_cruise_ex_node CMake Error: Cannot determine link language for target "oryxbot_cruise_ex_node". -- Generating done -- Build files have been written to: /home/bobac3/ros_workspace/build Makefile:2896: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed
06-29
-- Configuring done CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../fep/lib" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../fep/lib/usrlib" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../lib" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../fep/lib" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../fep/lib/usrlib" This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) in CMakeLists.txt: Policy CMP0081 is not set: Relative paths not allowed in LINK_DIRECTORIES target property. Run "cmake --help-policy CMP0081" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Found relative path while evaluating link directories of "portal": "../lib" 报错解析
10-21
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值