summaryrefslogtreecommitdiffhomepage
path: root/src/external
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2018-07-03 20:28:44 +0200
committerAhmad Fatoum <[email protected]>2018-07-03 21:35:27 +0200
commit61747508b0b0ee77b1de40a1c7f0a483c1a07e05 (patch)
tree8c7f3951d762bd0400e9dc99de7a9457d82754df /src/external
parent33c830353b2d9f9a0f33e87b27ba36b3c6da6076 (diff)
downloadraylib-61747508b0b0ee77b1de40a1c7f0a483c1a07e05.tar.gz
raylib-61747508b0b0ee77b1de40a1c7f0a483c1a07e05.zip
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.
Diffstat (limited to 'src/external')
-rw-r--r--src/external/glfw/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/external/glfw/CMakeLists.txt b/src/external/glfw/CMakeLists.txt
index 4f9dbcf7..0eb7e7ea 100644
--- a/src/external/glfw/CMakeLists.txt
+++ b/src/external/glfw/CMakeLists.txt
@@ -327,10 +327,10 @@ endif()
# Export GLFW library dependencies
#--------------------------------------------------------------------
foreach(arg ${glfw_PKG_DEPS})
- set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} ${arg}")
+ set(GLFW_PKG_DEPS "${GLFW_PKG_DEPS} ${arg}" PARENT_SCOPE)
endforeach()
foreach(arg ${glfw_PKG_LIBS})
- set(GLFW_PKG_LIBS "${GLFW_PKG_LIBS} ${arg}")
+ set(GLFW_PKG_LIBS "${GLFW_PKG_LIBS} ${arg}" PARENT_SCOPE)
endforeach()
#--------------------------------------------------------------------