mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-16 11:25:35 +00:00
Fix issue when trying to build raylib statically (#1544)
This commit is contained in:
@@ -23,7 +23,7 @@ if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW STREQUAL "ON" AND "${PLATFORM}" MAT
|
|||||||
|
|
||||||
add_subdirectory(external/glfw)
|
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)
|
unset(WAS_SHARED)
|
||||||
|
|
||||||
list(APPEND raylib_sources $<TARGET_OBJECTS:glfw_objlib>)
|
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()
|
else()
|
||||||
MESSAGE(STATUS "Using external GLFW")
|
MESSAGE(STATUS "Using external GLFW")
|
||||||
set(GLFW_PKG_DEPS glfw3)
|
set(GLFW_PKG_DEPS glfw3)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user