File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,11 @@ status_print(project_version)
31
31
declare_cache_var (ZENOHCXX_ZENOHC ON BOOL "Build for Zenoh-c target" )
32
32
declare_cache_var (ZENOHCXX_ZENOHPICO OFF BOOL "Build for Zenoh-pico target" )
33
33
declare_cache_var (ZENOHCXX_EXAMPLES_PROTOBUF ON BOOL "Build Protobuf example (turn off if you have problems with installed Protobuf version)" )
34
+ declare_cache_var (ENABLE_TESTS "Enable building tests" ON )
35
+ declare_cache_var (ENABLE_EXAMPLES "Enable building examples" ON )
34
36
35
37
set_default_build_type (Release )
36
38
37
- option (ENABLE_TESTS "Enable building tests" ON )
38
- option (ENABLE_EXAMPLES "Enable building examples" ON )
39
-
40
39
# zenohcxx without dependencies
41
40
add_library (zenohcxx INTERFACE )
42
41
target_include_directories (zenohcxx INTERFACE "${CMAKE_CURRENT_SOURCE_DIR} /include" )
@@ -73,9 +72,9 @@ endif()
73
72
74
73
75
74
add_subdirectory (install )
76
- enable_testing ()
77
75
78
76
if (ENABLE_TESTS )
77
+ enable_testing ()
79
78
add_subdirectory (tests )
80
79
else ()
81
80
message (STATUS "Tests are disabled." )
You can’t perform that action at this time.
0 commit comments