CMake: Reuse libraries found by glfw CMake config

if (${PLATFORM} MATCHES "Desktop")
  target_link_libraries(${RAYLIB}_shared glfw ${GLFW_LIBRARIES})

was never true because PLATFORM STREQUAL "PLATFORM_DESKTOP"...

This fixes #551 and makes the changes suggested in #552 (commited as 965cc8ab)
unnecessary.
This commit is contained in:
Ahmad Fatoum
2018-07-03 20:28:44 +02:00
parent 33c830353b
commit 61747508b0
4 changed files with 12 additions and 26 deletions

View File

@ -9,5 +9,5 @@ URL: http://github.com/raysan5/raylib
Version: @PROJECT_VERSION@
Libs: -L${libdir} -lraylib
Libs.private: @PKG_CONFIG_LIBS_PRIVATE@
Requires.private:
Requires.private: @GLFW_PKG_DEPS@
Cflags: -I${includedir}