8000 Cannot find GLFWConfig.cmake because of "glfw3" · Issue #933 · glfw/glfw · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cannot find GLFWConfig.cmake because of "glfw3" #933
Open
@jasjuang

Description

@jasjuang

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug reports and bugfix pull requestsbuildBuild file bugs and PRs (not compilation errors)verifiedReproduced or otherwise verified bugs

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0