diff options
| author | Nikolas <[email protected]> | 2021-01-22 23:43:06 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-22 23:43:06 +0100 |
| commit | a0d2b64747ceb8e25fe0a313b0e8efaa33f7876b (patch) | |
| tree | 3b8e68cf2da958aaa473fdc828d84e1905c25565 /cmake | |
| parent | f4f208c4aeab5ee4c7e441714fdf6938dca3c24d (diff) | |
| download | raylib-a0d2b64747ceb8e25fe0a313b0e8efaa33f7876b.tar.gz raylib-a0d2b64747ceb8e25fe0a313b0e8efaa33f7876b.zip | |
Fix issue when trying to build raylib statically (#1544)
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/GlfwImport.cmake | 4 |
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() |
