Skip to content

Commit 7ab72f7

Browse files
authored
[RSDK-10385] Use a newer CMake minimum for Windows (#410)
1 parent fddae77 commit 7ab72f7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@
3232
# most uses of this product, it is expected to be cross-compiling for
3333
# the target platform on a development system, meaning that we are not
3434
# constrained by the version of CMake available on target systems.
35-
cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
35+
36+
if (WIN32)
37+
# Use a newer version of CMake on Windows, so we are NEW for
38+
# https://cmake.org/cmake/help/latest/policy/CMP0149.html
39+
cmake_minimum_required(VERSION 3.27 FATAL_ERROR)
40+
else()
41+
cmake_minimum_required(VERSION 3.25 FATAL_ERROR)
42+
endif()
3643

3744
set(CMAKE_PROJECT_VERSION 0.7.0)
3845

0 commit comments

Comments
 (0)