Description
I am on Visual studio 2015 and Windows 10.
I install glfw through the standard procedure of
git clone https://github.com/glfw/glfw
mkdir build
cd build
cmake -A x64 ..
It generates a solution file. I build the entire solution and build the INSTALL project.
However, when I am using find_package( GLFW REQUIRED )
it is unable to find glfw because it is expecting a GLFWConfig.cmake. After reading here I learned that cmake actually search for the below default places for the config file
(W) <prefix>/
(W) <prefix>/(cmake|CMake)/
(W) <prefix>/<name>*/
(W) <prefix>/<name>*/(cmake|CMake)/
(U) <prefix>/(lib/<arch>|lib|share)/cmake/<name>*/
(U) <prefix>/(lib/<arch>|lib|share)/<name>*/
(U) <prefix>/(lib/<arch>|lib|share)/<name>*/(cmake|CMake)/
I notice there is a cmake config in C:/Program Files (x86)/GLFW/lib/cmake/glfw3/glfw3Config.cmake
, so if I manually rename the folder and the config file to C:/Program Files (x86)/GLFW/lib/cmake/GLFW/GLFWConfig.cmake
I am able to successfully find GLFW with find_package( GLFW REQUIRED )
. I have to install GLFW for multiple computers, can someone change "glfw3" to "GLFW" so everything can be automated?