File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.10)
2
2
3
- set (CODSPEED_VERSION 1.0)
3
+ set (CODSPEED_VERSION 1.0.0 )
4
4
5
- project (
6
- codspeed
7
- VERSION ${CODSPEED_VERSION}
8
- LANGUAGES CXX)
5
+ project (codspeed VERSION ${CODSPEED_VERSION} LANGUAGES CXX)
9
6
10
7
# Specify the C++ standard
11
8
set (CMAKE_CXX_STANDARD 17)
@@ -22,8 +19,8 @@ add_compile_definitions(CODSPEED_VERSION="${CODSPEED_VERSION}")
22
19
23
20
# Disable valgrind compilation errors
24
21
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" )
25
- # Disable the old-style-cast warning for the specific target
26
- target_compile_options (codspeed PRIVATE -Wno-old-style-cast)
22
+ # Disable the old-style-cast warning for the specific target
23
+ target_compile_options (codspeed PRIVATE -Wno-old-style-cast)
27
24
endif ()
28
25
29
26
# Specify the include directories for users of the library
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ std::string join(const std::vector<std::string> &elements,
18
18
19
19
CodSpeed::CodSpeed () : is_instrumented(measurement_is_instrumented()) {
20
20
if (!is_instrumented) {
21
- std::cout
21
+ std::cerr
22
22
<< " NOTICE: codspeed is enabled, but no performance measurement will "
23
23
" be made since it's running in an unknown environment."
24
24
<< std::endl;
@@ -48,6 +48,6 @@ void CodSpeed::end_benchmark() {
48
48
std::string action_str = is_instrumented ? " Measured" : " Checked" ;
49
49
std::string group_str =
50
50
group_stack.empty () ? " " : " (group: " + join (group_stack, " /" ) + " )" ;
51
- std::cout << action_str << " : " << current_benchmark << group_str
51
+ std::cerr << action_str << " : " << current_benchmark << group_str
52
52
<< std::endl;
53
53
}
You can’t perform that action at this time.
0 commit comments