mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
cmake: Set CMP0069 policy to new for external dependencies
* This enables LTO also when building external dependencies that do not handle CMP0069 in their CMake scripts.
This commit is contained in:
parent
992e1e42e7
commit
1c7f1c579e
3
externals/CMakeLists.txt
vendored
3
externals/CMakeLists.txt
vendored
@ -8,6 +8,9 @@ set_directory_properties(PROPERTIES
|
||||
SYSTEM ON
|
||||
)
|
||||
|
||||
# Set CMP0069 policy to "NEW" in order to ensure consistent behavior when building external targets with LTO enabled
|
||||
set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
|
||||
|
||||
if (MSVC)
|
||||
# Silence "deprecation" warnings
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS)
|
||||
|
Loading…
Reference in New Issue
Block a user