CMake - Fix usage of GLFW. Use static library instead of object files.
This commit is contained in:
parent
8db130289e
commit
e50def25a3
|
|
@ -35,9 +35,6 @@ if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW STREQUAL "ON" AND "${PLATFORM}" MAT
|
||||||
set(GLFW_USE_WAYLAND ${USE_WAYLAND} CACHE BOOL "" FORCE)
|
set(GLFW_USE_WAYLAND ${USE_WAYLAND} CACHE BOOL "" FORCE)
|
||||||
|
|
||||||
add_subdirectory(external/glfw)
|
add_subdirectory(external/glfw)
|
||||||
|
|
||||||
list(APPEND raylib_sources $<TARGET_OBJECTS:glfw_objlib>)
|
|
||||||
include_directories(BEFORE SYSTEM external/glfw/include)
|
|
||||||
else()
|
else()
|
||||||
MESSAGE(STATUS "Using external GLFW")
|
MESSAGE(STATUS "Using external GLFW")
|
||||||
set(GLFW_PKG_DEPS glfw3)
|
set(GLFW_PKG_DEPS glfw3)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user