mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00
CMakeLists.txt: Enable policy CMP0177 if it's available.
This fixes a bunch of warnings similar to the following: CMake Warning (dev) at src/kde/kf5/CMakeLists.txt:370 (INSTALL): Policy CMP0177 is not set: install() DESTINATION paths are normalized. Run "cmake --help-policy CMP0177" for policy details. Use the cmake_policy command to set the policy and suppress this warning. This warning is for project developers. Use -Wno-dev to suppress it.
This commit is contained in:
parent
7e51a47609
commit
c0c8b2582c
@ -27,6 +27,12 @@ IF(POLICY CMP0151)
|
||||
CMAKE_POLICY(SET CMP0151 NEW)
|
||||
ENDIF(POLICY CMP0151)
|
||||
|
||||
# CMP0177: Normalize INSTALL() destination paths.
|
||||
# Introduced in CMake 3.31.
|
||||
IF(POLICY CMP0177)
|
||||
CMAKE_POLICY(SET CMP0177 NEW)
|
||||
ENDIF(POLICY CMP0177)
|
||||
|
||||
# Read the project version.
|
||||
CONFIGURE_FILE(version.txt version.txt.tmp)
|
||||
FILE(STRINGS version.txt RP_VERSION_FILE)
|
||||
|
Loading…
Reference in New Issue
Block a user