Commit c46556f 1 parent 455b59c commit c46556f Copy full SHA for c46556f
File tree 12 files changed +22
-20
lines changed
compiler/extensions/cpp/runtime
zserio/deprecated_attribute
test/utils/cpp/test_utils
12 files changed +22
-20
lines changed Original file line number Diff line number Diff line change 1
1
# Script called from clang_format_utils.cmake to run clang-format and preserve it's output.
2
2
#
3
+ # Prerequisites:
4
+ # CMake 3.15+
5
+ #
3
6
# Expected definitions:
4
7
# CLANG_FORMAT_BIN Clang format binary.
5
8
# SOURCE Source to check by clang-format.
6
9
# CONFIG_FILE Path to the clang-format config file.
7
10
# WERROR Ends with an error in case of any format violation.
8
- cmake_minimum_required (VERSION 3.6 .0)
11
+ cmake_minimum_required (VERSION 3.15 .0)
9
12
10
13
foreach (ARG CLANG_FORMAT_BIN SOURCE CONFIG_FILE WERROR)
11
14
if (NOT DEFINED ${ARG} )
Original file line number Diff line number Diff line change 1
1
# Script called from clang_tidy_utils.cmake to run checks for unexpected warnings.
2
2
#
3
+ # Prerequisites:
4
+ # CMake 3.15+
5
+ #
3
6
# Expected definitions:
4
7
# LOG_FILE File containing clang-tidy log.
5
8
# SUPPRESSIONS_FILE Suppressions file for clang-tidy warnings. If any warnings are fired but not suppressed,
12
15
# WERROR Ends with an error in case of any unsuppressed clang-tidy warnings.
13
16
# WERROR_UNUSED_SUPPRESSIONS
14
17
# Fires an error in case of unused suppressions.
15
- cmake_minimum_required (VERSION 3.6 .0)
18
+ cmake_minimum_required (VERSION 3.15 .0)
16
19
17
20
# splits suppression to RULE and PATH_MATCHER parts
18
21
function (get_matchers SUPPRESSION RULE_VAR PATH_MATCHER_VAR)
Original file line number Diff line number Diff line change 1
1
# Script called from clang_tidy_utils.cmake to run clang-tidy and preserve it's output.
2
2
#
3
+ # Prerequisites:
4
+ # CMake 3.15+
5
+ #
3
6
# Expected definitions:
4
7
# CLANG_TIDY_BIN Clang Tidy binary.
5
8
# SOURCES Sources to check by clang-tidy.
6
9
# BUILD_PATH Build path containing compilation database. Use -DCMAKE_EXPORT_COMPILE_COMMANDS=ON.
7
10
# CONFIG_FILE Path to the clang-tidy config file.
8
11
# HEADER_FILTER Header filter to use.
9
12
# OUTPUT_FILE Output file to use.
10
- cmake_minimum_required (VERSION 3.6 .0)
13
+ cmake_minimum_required (VERSION 3.15 .0)
11
14
12
15
separate_arguments (SOURCES )
13
16
Original file line number Diff line number Diff line change 69
69
# - ZSERIO_JAR_FILE is changed
70
70
# - zserio schema sources are changed
71
71
# - EXTRA_ARGS are changed
72
+
73
+ if (CMAKE_VERSION VERSION_LESS "3.15.0" )
74
+ message (FATAL_ERROR "CMake 3.15+ is required!" )
75
+ endif ()
76
+
72
77
function (zserio_generate_cpp)
73
78
find_program (JAVA java)
74
79
if (NOT JAVA)
Original file line number Diff line number Diff line change 6
6
# This CMake file is designed to be included directly without any further dependencies.
7
7
#
8
8
9
- cmake_minimum_required (VERSION 3.9 .0)
9
+ cmake_minimum_required (VERSION 3.15 .0)
10
10
11
11
project (ZserioCppRuntimeTests)
12
12
Original file line number Diff line number Diff line change 13
13
# add_executable(ZserioTestApp HelloWorld.cpp)
14
14
# target_link_libraries(ZserioTestApp ZserioCppRuntime)
15
15
16
- cmake_minimum_required (VERSION 3.1 .0)
16
+ cmake_minimum_required (VERSION 3.15 .0)
17
17
18
18
project (ZserioCppRuntime)
19
19
Original file line number Diff line number Diff line change 5
5
# This CMake file is NOT designed to be included directly without any further dependencies.
6
6
#
7
7
8
- cmake_minimum_required (VERSION 3.9.0)
9
-
10
8
project (ZserioCppRuntimeTest)
11
9
12
10
# add gtest library
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.6.0)
2
-
3
1
include (ExternalProject)
4
2
5
3
ExternalProject_add(DeprecatedAttribute
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.6 .0)
1
+ cmake_minimum_required (VERSION 3.15 .0)
2
2
3
3
project (DeprecatedAttribute)
4
4
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ generate_cpp_files()
276
276
local BUILD_SRC_DIR=" ${BUILD_DIR} /src"
277
277
mkdir -p " ${BUILD_SRC_DIR} "
278
278
cat > " ${BUILD_SRC_DIR} " /CMakeLists.txt << EOF
279
- cmake_minimum_required(VERSION 3.6 .0)
279
+ cmake_minimum_required(VERSION 3.15 .0)
280
280
project(PerformanceTest)
281
281
282
282
enable_testing()
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ compiler_set_warnings_as_errors()"
201
201
fi
202
202
203
203
cat > ${BUILD_DIR} /CMakeLists.txt << EOF
204
- cmake_minimum_required(VERSION 3.6 .0)
204
+ cmake_minimum_required(VERSION 3.15 .0)
205
205
project(test_zs_${TEST_NAME} )
206
206
207
207
enable_testing()
Original file line number Diff line number Diff line change 2
2
#
3
3
# This CMake file defines utility library which is used for all C++ integration tests.
4
4
#
5
- cmake_minimum_required (VERSION 3.6.0)
6
5
7
6
project (ZserioCppTestUtils)
8
7
9
- # input parameters
10
- set (CLANG_FORMAT_BIN "" CACHE STRING "Name of clang-format binary. If empty, clang-format tool is not called." )
11
- set (ZSERIO_PROJECT_ROOT "${CMAKE_CURRENT_SOURCE_DIR} /../../../.." )
12
-
13
- # cmake helpers
14
- include (clang_format_utils)
15
-
16
8
set (ZSERIO_CPP_TEST_UTILS_SOURCES
17
9
${CMAKE_CURRENT_SOURCE_DIR} /Assertions.h
18
10
${CMAKE_CURRENT_SOURCE_DIR} /LocalServiceClient.h
You can’t perform that action at this time.
0 commit comments