Skip to content

Commit cac42b6

Browse files
committed
Set default optimisation level
1 parent c68701e commit cac42b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
cmake_minimum_required(VERSION 3.0)
22
project(hwmond)
33

4+
if(NOT CMAKE_BUILD_TYPE)
5+
set(CMAKE_BUILD_TYPE Release)
6+
endif()
7+
48
set(CMAKE_CXX_STANDARD 11)
59
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic")
10+
set(CMAKE_CXX_FLAGS_DEBUG "-g")
11+
set(CMAKE_CXX_FLAGS_RELEASE "-Os")
612

713
set(SOURCE_FILES
814
hwmond.c cpu_usage.c cpu_usage.h)

0 commit comments

Comments
 (0)