mirror of
https://github.com/diasurgical/DevilutionX.git
synced 2026-10-12 02:13:06 +00:00
Fix libpng on CMake 4.0
This commit is contained in:
committed by
Anders Jenbo
parent
4e74717fc2
commit
16b9a8e7b1
Vendored
+5
@@ -1,5 +1,10 @@
|
||||
include(functions/FetchContent_MakeAvailableExcludeFromAll)
|
||||
|
||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL "4.0")
|
||||
# Workaround for removal of CMake 3.5 compatibility in CMake 4.0+.
|
||||
set(CMAKE_POLICY_VERSION_MINIMUM 3.22)
|
||||
endif()
|
||||
|
||||
if(NOT DISABLE_LTO)
|
||||
# Force CMake to raise an error if INTERPROCEDURAL_OPTIMIZATION
|
||||
# is enabled and compiler does not support IPO
|
||||
|
||||
Reference in New Issue
Block a user