我遇到了安装C++库的问题.该CMake的命令是成功的,产生的Makefile,但它给出了一个警告:
CMake Warning (dev) at CMakeLists.txt:27 (LINK_DIRECTORIES):
This command specifies the relative path
../usr/local/lib
as a link directory.
Policy CMP0015 is not set: link_directories() treats paths relative to the
source dir. Run "cmake --help-policy CMP0015" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
Run Code Online (Sandbox Code Playgroud)
CMakeLists.txt中的第27行是
Boost_LIBRARY_DIR_DEBUG:PATH=/usr/local/lib
Run Code Online (Sandbox Code Playgroud)
我不明白为什么这个警告会给我带来任何问题.但是当我运行make install时,我收到一个错误:
make: *** No rule to make target `install'. Stop.
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?