File tree Expand file tree Collapse file tree 8 files changed +3
-15
lines changed
Expand file tree Collapse file tree 8 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 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-
75include (ExternalProject)
86
97set (THIRD_PARTY_INCLUDE)
Original file line number Diff line number Diff line change 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 )
1212project (UJIT C)
1313
1414if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
@@ -60,10 +60,8 @@ set_property(CACHE UJIT_TEST_LIB_TYPE PROPERTY STRINGS ${UJIT_TEST_LIB_TYPE_VALU
6060message (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} ." )
6765endif ()
6866
6967# Name of the CLI binary to be used in tests:
Original file line number Diff line number Diff 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} "
Original file line number Diff line number Diff 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} "
Original file line number Diff line number Diff line change 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-
75set (UJIT_MAN_PAGE ${CMAKE_CURRENT_SOURCE_DIR} /ujit.1)
86set (UJIT_COMPRESSED_MAN_PAGE ${CMAKE_CURRENT_BINARY_DIR} /ujit.1.gz)
97
Original file line number Diff line number Diff line change 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)
65enable_language (ASM)
76
87include_directories (${CMAKE_CURRENT_SOURCE_DIR} ) # for sub-projects
Original file line number Diff line number Diff line change 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-
75set (CMAKE_MODULE_PATH
86 ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR} /cmake"
97)
Original file line number Diff line number Diff line change 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)
65enable_language (C)
76
87include (MakeSourceList)
You can’t perform that action at this time.
0 commit comments