Проверка наличия POLICY

This commit is contained in:
Andrei Astafev 2025-03-27 13:47:25 +03:00
parent abd9215ec0
commit a2886b2792
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,7 @@
cmake_policy(PUSH)
cmake_policy(SET CMP0057 NEW) # IN_LIST operator
if(POLICY CMP0057)
cmake_policy(SET CMP0057 NEW) # IN_LIST operator
endif()
# CMake выполняет проверку системного окружения с помощью модулей,
# расположенных в следующих каталогах:

View File

@ -1,5 +1,7 @@
cmake_policy(PUSH)
cmake_policy(SET CMP0053 NEW)
if(POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
endif()
set(ARG_PREFIX "${PREFIX}")
set(GIT_REV "N/A")