cmake: fix MSVC unrecognized option link warning

This commit is contained in:
Anonymous Maarten 2023-11-06 01:58:26 +01:00
parent 761390b62f
commit 459f17257c
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ function(SDL_detect_linker)
set(SDL_CMAKE_C_COMPILER_LINKER_ID "${linker}" CACHE STRING "Linker identification")
mark_as_advanced(SDL_CMAKE_C_COMPILER_LINKER_ID)
endif()
set(CMAKE_C_COMPILER_LINKER_ID "${SDL_CMAKE_C_COMPILER_LINKER_ID}")
set(CMAKE_C_COMPILER_LINKER_ID "${SDL_CMAKE_C_COMPILER_LINKER_ID}" PARENT_SCOPE)
endif()
endfunction()