我遇到了安装C++库的问题。该CMake命令是成功的,产生的Makefile,但它给出了一个警告:在的CMakeLists.txt“没有规则使目标'安装'”...但是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.
第27行是
Boost_LIBRARY_DIR_DEBUG:PATH=/usr/local/lib
我不明白为什么这样的警告会引起我的任何问题。但是当我运行make install时,出现错误:
make: *** No rule to make target `install'. Stop.
任何想法?
您是否知道生成的makefile实际上包含'install'目标? –
两条建议:首先,用相应的错误消息搜索网页。其次,提取一个最小的例子。就目前而言,您的问题不在话下,请参阅发布指南。 –