aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheLastRar <TheLastRar@users.noreply.github.com>2022-10-31 01:14:25 +0000
committerTheLastRar <TheLastRar@users.noreply.github.com>2022-11-04 18:11:36 +0000
commit29c1639b1dd0a578046bb9227d6c8d53132a52b1 (patch)
treeb98a6ddeb031c60497248e6617fc9151b48c353a
parent653a953d2fee6a2c140e01dbbd204bde5d424be4 (diff)
downloadPrismLauncher-29c1639b1dd0a578046bb9227d6c8d53132a52b1.tar.gz
PrismLauncher-29c1639b1dd0a578046bb9227d6c8d53132a52b1.tar.bz2
PrismLauncher-29c1639b1dd0a578046bb9227d6c8d53132a52b1.zip
CMake: Force bundled zlib to take our IPO settings
Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3ed4d772..08727ae2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -312,6 +312,7 @@ add_subdirectory(libraries/launcher) # java based launcher part for Minecraft
add_subdirectory(libraries/javacheck) # java compatibility checker
if(NOT ZLIB_FOUND)
message(STATUS "Using bundled zlib")
+ set(CMAKE_POLICY_DEFAULT_CMP0069 NEW) # Suppress cmake warnings and allow INTERPROCEDURAL_OPTIMIZATION for zlib
set(SKIP_INSTALL_ALL ON)
add_subdirectory(libraries/zlib EXCLUDE_FROM_ALL)