File tree 6 files changed +14
-11
lines changed
6 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 86
86
id : cache
87
87
with :
88
88
path : ./build/release/third_party/install
89
- key : ${{ github.job }}-${{ matrix.ubuntu_image }}-${{ hashFiles('./third_party/**') }}
89
+ key : ${{ github.job }}-${{ matrix.ubuntu_image }}-${{ hashFiles('./third_party/**') }}-1
90
90
- name : disable superbuild on cache hit
91
91
if : steps.cache.outputs.cache-hit == 'true'
92
92
run : echo "superbuild=-DSUPERBUILD=OFF" >> $GITHUB_ENV && echo "cmake_prefix_path=-DCMAKE_PREFIX_PATH=$(pwd)/build/release/third_party/install" >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ option(BUILD_MAVSDK_SERVER "Build mavsdk_server" OFF)
6
6
option (BUILD_WITH_PROTO_REFLECTION "Build mavsdk_server with proto reflection" OFF )
7
7
option (BUILD_SHARED_LIBS "Build core as shared libraries instead of static ones" ON )
8
8
option (MAVLINK_DIALECT "MAVLink dialect. Default: common" "common" )
9
+ option (BUILD_TESTING "Build tests" ON )
9
10
10
11
if (SUPERBUILD AND HUNTER_ENABLED)
11
12
message (FATAL_ERROR "Cannot SUPERBUILD while HUNTER_ENABLED. Set -DSUPERBUILD=OFF when using Hunter" )
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ override_dh_auto_configure:
10
10
dh_auto_configure -O--buildsystem=cmake -O--builddirectory=build -- \
11
11
-DCMAKE_BUILD_TYPE=Release \
12
12
-DBUILD_SHARED_LIBS=ON \
13
- -DBUILD_TESTS =OFF \
13
+ -DBUILD_TESTING =OFF \
14
14
-DSUPERBUILD=OFF \
15
15
-DCMAKE_INSTALL_PREFIX=/usr
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ if(CCACHE AND CCACHE_PROGRAM AND NOT DEFINED ENV{CCACHE_DISABLE})
24
24
endif ()
25
25
endif ()
26
26
27
- option (BUILD_TESTS "Build tests" ON )
27
+ option (BUILD_TESTING "Build tests" ON )
28
28
option (CMAKE_POSITION_INDEPENDENT_CODE "Position independent code" ON )
29
29
30
30
include (cmake/compiler_flags.cmake)
@@ -43,9 +43,9 @@ hunter_add_package(lzma)
43
43
find_package (CURL REQUIRED)
44
44
find_package (LibLZMA REQUIRED)
45
45
46
- if (BUILD_TESTS AND (IOS OR ANDROID))
47
- message (STATUS "Building for iOS or Android: forcing BUILD_TESTS to FALSE..." )
48
- set (BUILD_TESTS OFF )
46
+ if (BUILD_TESTING AND (IOS OR ANDROID))
47
+ message (STATUS "Building for iOS or Android: forcing BUILD_TESTING to FALSE..." )
48
+ set (BUILD_TESTING OFF )
49
49
endif ()
50
50
51
51
if (ANDROID)
@@ -70,7 +70,7 @@ add_subdirectory(mavsdk)
70
70
71
71
include (cmake/static_analyzers.cmake)
72
72
73
- if (BUILD_TESTS )
73
+ if (BUILD_TESTING )
74
74
enable_testing ()
75
75
76
76
add_subdirectory (integration_tests)
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ find_package(gRPC REQUIRED)
6
6
7
7
add_subdirectory (src)
8
8
9
- if (BUILD_TESTS )
9
+ if (BUILD_TESTING )
10
10
add_subdirectory (test )
11
11
endif ()
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ include(cmake/build_target.cmake)
7
7
list (APPEND CMAKE_PREFIX_PATH "${DEPS_INSTALL_PATH} " )
8
8
set (CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} PARENT_SCOPE)
9
9
10
- if (SUPERBUILD)
10
+ if (SUPERBUILD)
11
11
build_target(mavlink)
12
12
build_target(jsoncpp)
13
13
build_target(tinyxml2)
@@ -29,12 +29,14 @@ if (SUPERBUILD)
29
29
build_target(grpc)
30
30
endif ()
31
31
32
- build_target(gtest)
32
+ if (BUILD_TESTING)
33
+ build_target(gtest)
34
+ endif ()
33
35
34
36
endif ()
35
37
36
38
build_target(libevents)
37
39
38
- if (ENABLE_CPPTRACE)
40
+ if (ENABLE_CPPTRACE)
39
41
build_target(cpptrace)
40
42
endif ()
You can’t perform that action at this time.
0 commit comments