File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,14 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
20
20
add_compile_options (-Wall -Wextra)
21
21
endif ()
22
22
23
- if (MRS_ENABLE_TESTING)
24
- message (WARNING "Setting optimizaton levels for tests" )
25
- add_definitions ("-O1" )
26
- add_definitions ("-g" )
27
- endif ()
23
+ if (ENABLE_COVERAGE)
24
+ message (WARNING "building for coverage, the performance might be limited" )
28
25
29
- if (COVERAGE)
30
- message (WARNING "building with --coverage, the performance might be limited" )
31
26
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage -fprofile-arcs" )
32
27
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage -fprofile-arcs" )
28
+
29
+ add_definitions ("-O1" )
30
+ add_definitions ("-g" )
33
31
endif ()
34
32
35
33
set (DEPENDENCIES
@@ -131,8 +129,7 @@ pluginlib_export_plugin_description_file(mrs_uav_managers plugins.xml)
131
129
## | testing |
132
130
## --------------------------------------------------------------
133
131
134
- # BUILD_TESTING is true by default when building with colcon
135
- if (BUILD_TESTING)
132
+ if (ENABLE_TESTS)
136
133
137
134
add_subdirectory (test )
138
135
You can’t perform that action at this time.
0 commit comments