summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorNikolas <[email protected]>2021-01-22 23:43:06 +0100
committerGitHub <[email protected]>2021-01-22 23:43:06 +0100
commita0d2b64747ceb8e25fe0a313b0e8efaa33f7876b (patch)
tree3b8e68cf2da958aaa473fdc828d84e1905c25565 /cmake
parentf4f208c4aeab5ee4c7e441714fdf6938dca3c24d (diff)
downloadraylib-a0d2b64747ceb8e25fe0a313b0e8efaa33f7876b.tar.gz
raylib-a0d2b64747ceb8e25fe0a313b0e8efaa33f7876b.zip
Fix issue when trying to build raylib statically (#1544)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/GlfwImport.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/GlfwImport.cmake b/cmake/GlfwImport.cmake
index 5692e44f..b740884f 100644
--- a/cmake/GlfwImport.cmake
+++ b/cmake/GlfwImport.cmake
@@ -23,7 +23,7 @@ if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW STREQUAL "ON" AND "${PLATFORM}" MAT
add_subdirectory(external/glfw)
- set(BUILD_SHARED_LIBS WAS_SHARED CACHE BOOL " " FORCE)
+ set(BUILD_SHARED_LIBS ${WAS_SHARED} CACHE BOOL " " FORCE)
unset(WAS_SHARED)
list(APPEND raylib_sources $<TARGET_OBJECTS:glfw_objlib>)
@@ -31,4 +31,4 @@ if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW STREQUAL "ON" AND "${PLATFORM}" MAT
else()
MESSAGE(STATUS "Using external GLFW")
set(GLFW_PKG_DEPS glfw3)
-endif() \ No newline at end of file
+endif()