diff options
| author | Ahmad Fatoum <[email protected]> | 2018-07-03 20:28:44 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-07-03 21:35:27 +0200 |
| commit | 61747508b0b0ee77b1de40a1c7f0a483c1a07e05 (patch) | |
| tree | 8c7f3951d762bd0400e9dc99de7a9457d82754df /src/external | |
| parent | 33c830353b2d9f9a0f33e87b27ba36b3c6da6076 (diff) | |
| download | raylib-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.txt | 4 |
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() #-------------------------------------------------------------------- |
