mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-22 08:55:35 +00:00
cmake: check if CMP0087 exists before setting it (#8613)
Fixes builds using < CMake 3.14
This commit is contained in:
parent
4339647d90
commit
0fb36f29a8
|
@ -126,7 +126,9 @@ if(CMAKE_VERSION VERSION_LESS 3.13.0)
|
|||
endif()
|
||||
|
||||
# CMP0087: install(CODE) and install(SCRIPT) support generator expressions.
|
||||
cmake_policy(SET CMP0087 NEW)
|
||||
if(POLICY CMP0087)
|
||||
cmake_policy(SET CMP0087 NEW)
|
||||
endif()
|
||||
function(SDL_install_pdb TARGET DIRECTORY)
|
||||
get_property(type TARGET ${TARGET} PROPERTY TYPE)
|
||||
if(type MATCHES "^(SHARED_LIBRARY|EXECUTABLE)$")
|
||||
|
|
Loading…
Reference in a new issue