CMake Warning: Cannot generate a safe linker search path for target

孤人 提交于 2021-02-08 13:59:14

问题


While running CMake for a pcl project I got a warning message:

-- Configuring done
CMake Warning at CMakeLists.txt:12 (add_executable):
  Cannot generate a safe linker search path for target
  handgenerator_output_to_pcd because files in some directories may conflict
  with libraries in implicit directories:

    link library [libboost_system.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/lib
    link library [libboost_filesystem.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/lib
    link library [libboost_thread.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/lib
    link library [libboost_date_time.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/lib
    link library [libboost_iostreams.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/lib
    link library [libboost_serialization.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/lib
    link library [libboost_chrono.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /usr/local/lib

  Some of these libraries may not be found correctly.

-- Generating done

How do I resolve this?

来源:https://stackoverflow.com/questions/35230355/cmake-warning-cannot-generate-a-safe-linker-search-path-for-target

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!