我遇到了安裝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'目標? –
兩條建議:首先,用相應的錯誤消息搜索網頁。其次,提取一個最小的例子。就目前而言,您的問題不在話下,請參閱發佈指南。 –