From b12aaba22683770db5f43e4167b113920a397034 Mon Sep 17 00:00:00 2001 From: hasufell Date: Sun, 30 Dec 2012 15:10:08 +0100 Subject: add -std=gnu89 this again breaks strict compilers like clang, so declare what gnu extensions we use --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a320668..f1ea09f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,8 @@ endif() message(STATUS "Building HardInfo for architecture: ${HARDINFO_OS}-${HARDINFO_ARCH}") +add_definitions("-std=gnu89") + include(FindPkgConfig) pkg_check_modules(GTK REQUIRED gtk+-2.0>=2.10 glib-2.0>=2.10 gthread-2.0>=2.10 gmodule-export-2.0>=2.10) pkg_check_modules(LIBSOUP libsoup-2.4>=2.24) -- cgit v1.2.3