Skip to content

Commit 71611b8

Browse files
Set cmake policy CMP0135 to NEW for cmake version >= 3.24
1 parent 3c512ca commit 71611b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
cmake_minimum_required(VERSION 3.21...3.22 FATAL_ERROR)
22

3+
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.24")
4+
cmake_policy(SET CMP0135 NEW)
5+
endif()
6+
37
project(dpctl
48
LANGUAGES CXX
59
DESCRIPTION "Python interface for XPU programming"

0 commit comments

Comments
 (0)