2

i was reading this How to build & install GLFW 3 and use it in a Linux project because i was having trouble installing glfw. when i ran "make install" this was the output.

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

how do i install it in /usr/include instead?

anarchokawaii
  • 116
  • 1
  • 9

1 Answers1

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

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

Community
  • 1
  • 1
xosp7tom
  • 2,131
  • 1
  • 17
  • 26