Skip to content

Commit 84dc051

Browse files
committed
Bump CMake minimum required version to 3.10
Newer CMake v4.x dropped support for versions < 3.10
1 parent 515904d commit 84dc051

File tree

8 files changed

+10
-22
lines changed

8 files changed

+10
-22
lines changed

CMakeLists.txt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Copyright 2009-2021 Intel Corporation
22
## SPDX-License-Identifier: Apache-2.0
33

4-
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
4+
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
55

66
SET(EMBREE_VERSION_MAJOR 4)
77
SET(EMBREE_VERSION_MINOR 4)
@@ -57,27 +57,15 @@ IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
5757
ENDIF()
5858

5959
IF(COMMAND cmake_policy)
60-
if (POLICY CMP0003)
61-
cmake_policy(SET CMP0003 NEW)
62-
endif()
63-
if (POLICY CMP0042)
64-
cmake_policy(SET CMP0042 NEW)
65-
endif()
6660
if(POLICY CMP0072)
6761
cmake_policy(SET CMP0072 NEW)
6862
endif()
69-
if(POLICY CMP0022)
70-
cmake_policy(SET CMP0022 NEW)
71-
endif()
7263
if(POLICY CMP0074)
7364
cmake_policy(SET CMP0074 NEW)
7465
endif()
7566
if(POLICY CMP0135)
7667
cmake_policy(SET CMP0135 NEW)
7768
endif()
78-
if(POLICY CMP0057)
79-
cmake_policy(SET CMP0057 NEW)
80-
endif()
8169
ENDIF()
8270

8371
MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)

common/cmake/FindTBB.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#===============================================================================
3838

3939
# We use INTERFACE libraries, which are only supported in 3.x
40-
cmake_minimum_required(VERSION 3.5)
40+
cmake_minimum_required(VERSION 3.10)
4141

4242
# These two are used to automatically find the root and include directories.
4343
set(_TBB_INCLUDE_SUBDIR "include")

doc/src/compilation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ installation, put the path to `ispc` permanently into your `PATH` environment
4848
variable or you set the `EMBREE_ISPC_EXECUTABLE` variable to point at the ISPC
4949
executable during CMake configuration.
5050

51-
You additionally have to install CMake 3.1.0 or higher and the developer
51+
You additionally have to install CMake 3.10 or higher and the developer
5252
version of [GLFW](https://www.glfw.org/) version 3.
5353

5454
Under macOS, all these dependencies can be installed

scripts/ospray/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## Global settings ##
55

6-
cmake_minimum_required(VERSION 3.5)
6+
cmake_minimum_required(VERSION 3.10)
77

88
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/dependencies)
99

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ IF (EMBREE_TESTING_INSTALL_TESTS)
5050
"# Copyright 2009-2021 Intel Corporation\n"
5151
"# SPDX-License-Identifier: Apache-2.0\n"
5252
"# This file was automatically generated\n"
53-
"cmake_minimum_required(VERSION 3.5)\n"
53+
"cmake_minimum_required(VERSION 3.10)\n"
5454
"\n"
5555
"project(embree-testing)\n"
5656
"\n"
@@ -119,4 +119,4 @@ IF (EMBREE_TESTING_INSTALL_TESTS)
119119
DESTINATION "${CMAKE_INSTALL_TESTDIR}"
120120
COMPONENT testing)
121121

122-
ENDIF()
122+
ENDIF()

tutorials/embree_info/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## SPDX-License-Identifier: Apache-2.0
33

44
PROJECT(embree_info)
5-
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
5+
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
66

77
IF (NOT EMBREE_PROJECT_COMPILATION)
88
FIND_PACKAGE(embree REQUIRED)
@@ -33,4 +33,4 @@ IF (COMMAND SIGN_TARGET)
3333
SIGN_TARGET(embree_info)
3434
ENDIF()
3535

36-
ADD_EMBREE_GENERIC_TEST(embree_info embree_info)
36+
ADD_EMBREE_GENERIC_TEST(embree_info embree_info)

tutorials/find_embree/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## SPDX-License-Identifier: Apache-2.0
33

44
PROJECT(find_embree)
5-
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
5+
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
66

77
FIND_PACKAGE(embree REQUIRED)
88

tutorials/minimal/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## SPDX-License-Identifier: Apache-2.0
33

44
PROJECT(minimal)
5-
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
5+
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
66

77
IF (NOT EMBREE_PROJECT_COMPILATION)
88
FIND_PACKAGE(embree REQUIRED)

0 commit comments

Comments
 (0)