“No rule to make target 'install'”… But Makefile exists

后端 未结 3 1895
失恋的感觉
失恋的感觉 2020-12-31 03:46

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         


        
3条回答
  •  情书的邮戳
    2020-12-31 03:56

    I also came across the same error. Here is the fix: If you are using Cmake-GUI:

    1. Clean the cache of the loaded libraries in Cmake-GUI File menu.
    2. Configure the libraries.
    3. Generate the Unix file.

    If you missed the 3rd step:

    *** No rule to make target `install'. Stop.

    error will occur.

提交回复
热议问题