mokafolio / Paper2

9 stars 1 forks source link

CMake unable to find glfw3 #2

Open FNKVSSL opened 1 year ago

FNKVSSL commented 1 year ago

I'm getting this error while trying to build on Windows:

CMake Error at Playground/CMakeLists.txt:2 (find_package):
  By not providing "Findglfw3.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "glfw3", but
  CMake did not find one.

  Could not find a package configuration file provided by "glfw3" with any of
  the following names:

    glfw3Config.cmake
    glfw3-config.cmake

  Add the installation prefix of "glfw3" to CMAKE_PREFIX_PATH or set
  "glfw3_DIR" to a directory containing one of the above files.  If "glfw3"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring incomplete, errors occurred!

Sounds trivial, but I can see now it's going to take me a week to learn CMake well enough to fix this. Is there a reason glfw3 isn't included with the other dependencies? I can build it myself, I'm just not sure how to patch it into CMakeLists.txt.

mokafolio commented 1 year ago

I have never tested this on windows, sorry. I am not actively supporting this at this point in time :( You have to install glfw and make sure it's in a place where cmake can find it.