Fix linking with GLFW for MinGW/MSYS

This commit is contained in:
SR_team 2022-06-22 04:19:26 +03:00
parent a6d659d1b5
commit 6bc3600596

View File

@ -155,6 +155,12 @@ if(LIBRW_PLATFORM_GL3)
PUBLIC
glfw
)
if (MINGW OR MSYS)
target_link_options(librw
PRIVATE
"-fstack-protector"
)
endif()
elseif (LIBRW_GL3_GFXLIB STREQUAL "SDL2")
find_package(SDL2 REQUIRED)
target_compile_definitions(librw PUBLIC LIBRW_SDL2)