I am running into issues installing a C++ library. The CMake command is successful and generates the Makefile, but it gives a warning:
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.
Line 27 in CMakeLists.txt is
Boost_LIBRARY_DIR_DEBUG:PATH=/usr/local/lib
I don't see why this warning would cause me any issues. But when I run make install, I get an error:
make: *** No rule to make target `install'. Stop.
Any ideas?
I also came across the same error. Here is the fix: If you are using Cmake-GUI:
If you missed the 3rd step:
*** No rule to make target `install'. Stop.
error will occur.
I was receiving the same error message, and my issue was that I was not in the correct directory when running the command make install
. When I changed to the directory that had my makefile it worked.
So possibly you aren't in the right directory.
Source: Stackoverflow.com