Skip to content

Commit

Permalink
more lto additions
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolix29 committed Dec 12, 2024
1 parent 802bd11 commit 08a2d10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions externals/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08a2d10

Please sign in to comment.