Skip to content

Commit 62be4c9

Browse files
starseekercshorler
authored andcommitted
Use CMake 3.12 everywhere.
1 parent c2fddd8 commit 62be4c9

16 files changed

Lines changed: 21 additions & 21 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040

4141
project(SC)
4242

43+
# Minimum required version of CMake
44+
cmake_minimum_required(VERSION 3.12)
45+
if (POLICY CMP0077)
46+
cmake_policy(SET CMP0077 OLD)
47+
endif (POLICY CMP0077)
48+
4349
# SC version
4450
set(SC_VERSION_MAJOR 0)
4551
set(SC_VERSION_MINOR 9)
@@ -54,12 +60,6 @@ set(CMAKE_CXX_EXTENSIONS OFF)
5460
set(CMAKE_CXX_STANDARD 11)
5561
set(CMAKE_CXX_STANDARD_REQUIRED ON)
5662

57-
# Minimum required version of CMake
58-
cmake_minimum_required(VERSION 3.6.3)
59-
cmake_policy(SET CMP0003 NEW)
60-
cmake_policy(SET CMP0026 NEW)
61-
cmake_policy(SET CMP0057 NEW)
62-
6363
# CMake derives much of its functionality from modules, typically
6464
# stored in one directory - let CMake know where to find them.
6565
set(SC_CMAKE_DIR "${SC_SOURCE_DIR}/cmake")

cmake/schema_scanner/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
project(SC_SUBPROJECT_SCHEMA_SCANNER)
2-
cmake_minimum_required(VERSION 3.6.3)
2+
cmake_minimum_required(VERSION 3.12)
33

44
if(NOT ("${CALLED_FROM}" STREQUAL "STEPCODE_CMAKELISTS" AND DEFINED SC_ROOT AND DEFINED SC_BUILDDIR))
55
message(" ${CALLED_FROM} ${SC_ROOT} ${SC_BUILDDIR}")

example/ap203min/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# for the use of this file.
77
#
88
project(AP203Minimum)
9-
cmake_minimum_required(VERSION 3.6.3)
9+
cmake_minimum_required(VERSION 3.12)
1010

1111
# Set STEPCODE_ROOT_DIR to point to the root of the STEPcode source tree.
1212
if(NOT DEFINED STEPCODE_ROOT_DIR)

example/ap203min/ExternalProjectBuild/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# for the use of this file.
77
#
88
project(AP203Minimum)
9-
cmake_minimum_required(VERSION 3.6.3)
9+
cmake_minimum_required(VERSION 3.12)
1010

1111
INCLUDE( ExternalProject )
1212

src/base/judy/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cmake_minimum_required(VERSION 3.6.3)
2+
cmake_minimum_required(VERSION 3.12)
33
project( JudyTemplates )
44

55
if( NOT DEFINED CMAKE_BUILD_TYPE )

src/clstepcore/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
1+
CMAKE_MINIMUM_REQUIRED(VERSION 3.12)
22
#c++ tests for clstepcore
33

44
include_directories(

src/exp2cxx/test/inverse_qualifiers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required( VERSION 3.6.3 )
1+
cmake_minimum_required( VERSION 3.12 )
22

33
# executable is ${EXE}, input file is ${INFILE}
44

src/exp2cxx/test/unique_qualifiers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required( VERSION 3.6.3 )
1+
cmake_minimum_required( VERSION 3.12 )
22

33
# executable is ${EXE}, input file is ${INFILE}
44

src/exppp/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.6.3)
1+
cmake_minimum_required(VERSION 3.12)
22
project(test_exppp)
33

44
set(breakLongStr_SRCS

src/exppp/test/exppp_div_slash.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required( VERSION 3.6.3 )
1+
cmake_minimum_required( VERSION 3.12 )
22

33
# executable is ${EXPPP}, input file is ${INFILE}
44

0 commit comments

Comments
 (0)