Skip to content

Commit 6e4392e

Browse files
committed
add more NEW policies, leave TODO comment for cmake_policy
1 parent 8246891 commit 6e4392e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
# For conditions of distribution and use, see copyright notice in nabla.h.in or nabla.h
44

55
cmake_minimum_required(VERSION 3.31)
6-
cmake_policy(SET CMP0112 NEW)
6+
# TODO: Yas - once we deploy 4.x we will fire `cmake_policy` instead of manually picking policies
7+
# https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html#policy-version
8+
# also we should update deps which throw warnings about < 3.10 compatibility
9+
cmake_policy(SET CMP0003 NEW) # https://cmake.org/cmake/help/latest/policy/CMP0077.html#cmp0077
10+
cmake_policy(SET CMP0077 NEW) # https://cmake.org/cmake/help/latest/policy/CMP0077.html#cmp0077
11+
cmake_policy(SET CMP0112 NEW) # https://cmake.org/cmake/help/latest/policy/CMP0112.html#cmp0112
712
cmake_policy(SET CMP0141 NEW) # https://cmake.org/cmake/help/latest/policy/CMP0141.html#policy:CMP0141
813
cmake_policy(SET CMP0118 NEW) # https://cmake.org/cmake/help/latest/policy/CMP0118.html#policy:CMP0118
914

0 commit comments

Comments
 (0)