title: cmake link to macOS pre-compiled binaries at custom path
body: <p>I want to link to the GLFW library using the binaries provided when downloading from the website at a custom path in my project:</p>
  <pre><code>include_directories(PROJECT_SOURCE_DIR/third_party/glfw/lib-arm64)
  
  add_executable(rpg main.cpp)
  target_include_directories(rpg PRIVATE ${PROJECT_SOURCE_DIR}/third_party/glad/include ${PROJECT_SOURCE_DIR}/third_party/glfw/include)
  
  find_library(GLFW_LIB NAMES glfw3 PATHS PROJECT_SOURCE_DIR/third_party/glfw PATH_SUFFIXES lib-arm64 lib-universal lib-x86_64)
  target_link_libraries(rpg PRIVATE ${GLFW_LIB})
  </code></pre>
  <p>I've tried finding both <code>glfw</code> and <code>glfw3</code> but this fails to find the GLFW library:</p>
  <pre><code>CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
  Please set them or make sure they are set and tested correctly in the CMake files:
  GLFW_LIB
      linked by target &quot;rpg&quot; in directory /Users/ashley/Personal/rpg/src
  </code></pre>
  <p>How should I specify the path to link to these rather than use a globally installed version or building from source myself?</p>
  <p><strong>Edit</strong></p>
  <p>Correcting the use of <code>find_library</code> as per @Tsyvarev suggestion solved this. The prior update to say it still didn't work was in haste - I wasn't correctly expanding the path variable.</p>