Cmake正在安装/ usr / local / include和/ usr / lib而不是/ usr / include

时间:2017-01-20 21:25:30

标签: cmake glfw

我正在读这个How to build & install GLFW 3 and use it in a Linux project因为我在安装glfw时遇到了麻烦。当我跑步" make install"这是输出。

blah blah blah build target [100%]
-- Install configuration: ""
-- Installing: /usr/local/include/GLFW
-- Installing: /usr/local/include/GLFW/glfw3.h
-- Installing: /usr/local/include/GLFW/glfw3native.h
-- Installing: /usr/local/lib/cmake/glfw3/glfw3Config.cmake
-- Installing: /usr/local/lib/cmake/glfw3/glfw3ConfigVersion.cmake
-- Installing: /usr/local/lib/cmake/glfw3/glfw3Targets.cmake
-- Installing: /usr/local/lib/cmake/glfw3/glfw3Targets-noconfig.cmake
-- Installing: /usr/local/lib/pkgconfig/glfw3.pc
-- Installing: /usr/local/lib/libglfw3.a

如何在/ usr / include中安装它?

1 个答案:

答案 0 :(得分:2)

cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . && make all install

What is cmake equivalent of 'configure --prefix=DIR && make all install '?

的副本