mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-21 17:21:44 +00:00
cmake: check if CMP0087 exists before setting it (#8613)
Fixes builds using < CMake 3.14
This commit is contained in:
@@ -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)$")
|
||||
|
Reference in New Issue
Block a user