Skip to content

Commit 0f91ea5

Browse files
authored
Merge pull request #79 from luavela/imun/update-cmake
Bump CMake minimal version up to 3.5
2 parents 20d8e7b + a0f9e05 commit 0f91ea5

File tree

8 files changed

+3
-15
lines changed

8 files changed

+3
-15
lines changed

3rdparty/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# Copyright (C) 2020-2025 LuaVela Authors. See Copyright Notice in COPYRIGHT
33
# Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
44

5-
cmake_minimum_required (VERSION 3.3.2 FATAL_ERROR)
6-
75
include(ExternalProject)
86

97
set(THIRD_PARTY_INCLUDE)

CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
99

1010
# --- Initial setup ------------------------------------------------------------
11-
cmake_minimum_required(VERSION 3.3.2 FATAL_ERROR)
11+
cmake_minimum_required(VERSION 3.5)
1212
project(UJIT C)
1313

1414
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
@@ -60,10 +60,8 @@ set_property(CACHE UJIT_TEST_LIB_TYPE PROPERTY STRINGS ${UJIT_TEST_LIB_TYPE_VALU
6060
message(STATUS "UJIT_TEST_LIB_TYPE='${UJIT_TEST_LIB_TYPE}'")
6161

6262
# Check that UJIT_TEST_LIB_TYPE value is correct
63-
# In CMake 3.5 we'll be able to use IN_LIST here
64-
list(FIND UJIT_TEST_LIB_TYPE_VALUES ${UJIT_TEST_LIB_TYPE} TEST_LIB_TYPE_INDEX)
65-
if(TEST_LIB_TYPE_INDEX EQUAL -1)
66-
message(FATAL_ERROR "UJIT_TEST_LIB_TYPE must be \"static\" or \"shared\"")
63+
if(NOT UJIT_TEST_LIB_TYPE IN_LIST UJIT_TEST_LIB_TYPE_VALUES)
64+
message(FATAL_ERROR "UJIT_TEST_LIB_TYPE must be one of the following: ${UJIT_TEST_LIB_TYPE_VALUES}.")
6765
endif()
6866

6967
# Name of the CLI binary to be used in tests:

cmake/ClangTidy.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ function(add_clang_tidy_check TARGET_NAME)
2323
set(singleValues)
2424
set(multiValues FILES DEPENDENCIES)
2525

26-
include(CMakeParseArguments) # if we update to CMake >= 3.5, can remove this line
2726
cmake_parse_arguments(${prefix}
2827
"${noValues}"
2928
"${singleValues}"

cmake/MakeSourceList.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function(make_source_list list)
2626
set(singleValues)
2727
set(multiValues SOURCES)
2828

29-
include(CMakeParseArguments) # if we update to CMake >= 3.5, can remove this line
3029
cmake_parse_arguments(${prefix}
3130
"${noValues}"
3231
"${singleValues}"

etc/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# Copyright (C) 2020-2025 LuaVela Authors. See Copyright Notice in COPYRIGHT
33
# Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
44

5-
cmake_minimum_required (VERSION 3.3.2 FATAL_ERROR)
6-
75
set(UJIT_MAN_PAGE ${CMAKE_CURRENT_SOURCE_DIR}/ujit.1)
86
set(UJIT_COMPRESSED_MAN_PAGE ${CMAKE_CURRENT_BINARY_DIR}/ujit.1.gz)
97

src/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Copyright (C) 2020-2025 LuaVela Authors. See Copyright Notice in COPYRIGHT
33
# Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
44

5-
cmake_minimum_required (VERSION 3.3.2 FATAL_ERROR)
65
enable_language (ASM)
76

87
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) # for sub-projects

tests/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# Copyright (C) 2020-2025 LuaVela Authors. See Copyright Notice in COPYRIGHT
33
# Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
44

5-
cmake_minimum_required (VERSION 3.3.2 FATAL_ERROR)
6-
75
set(CMAKE_MODULE_PATH
86
${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake"
97
)

tools/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Copyright (C) 2020-2025 LuaVela Authors. See Copyright Notice in COPYRIGHT
33
# Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
44

5-
cmake_minimum_required (VERSION 3.3.2 FATAL_ERROR)
65
enable_language(C)
76

87
include(MakeSourceList)

0 commit comments

Comments
 (0)