Skip to content

Commit

Permalink
Require C99 mode
Browse files Browse the repository at this point in the history
Require C99 mode because of variables declared in for loops.
  • Loading branch information
ryandesign committed Mar 11, 2021
1 parent 9f2b384 commit 66a5773
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.1)
project(hwmond LANGUAGES C)

option(FAKE "Use fake (random) CPU usage data")
Expand Down Expand Up @@ -26,6 +26,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/modules")
find_package(LibUSB REQUIRED)

add_executable(hwmond ${SOURCE_FILES})
set_property(TARGET hwmond PROPERTY C_STANDARD 99)

if (APPLE)
find_library(CoreFoundation CoreFoundation)
Expand Down

0 comments on commit 66a5773

Please sign in to comment.