summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-02-23 15:54:40 +0100
committerSander Vrijders <[email protected]>2016-02-23 15:54:40 +0100
commit61670a5b3d37ee8bb611c5d08cc216f4b6d9570b (patch)
treed7527b7fd599226af474d28073c969f3e10da360 /CMakeLists.txt
parent839c76c814a01e3852f5da1c4e294e8668e13c4f (diff)
downloadouroboros-61670a5b3d37ee8bb611c5d08cc216f4b6d9570b.tar.gz
ouroboros-61670a5b3d37ee8bb611c5d08cc216f4b6d9570b.zip
build: Fix check for C89
The flag for the C89 standard was added without checking if the compiler supports it. This has been fixed. Also, the feature summary has been (temporarily) disabled.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3495e6a..8da3ee54 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,12 +27,10 @@ message(STATUS "Package URL is: ${PACKAGE_URL}")
message(STATUS "Package bug-report address: ${PACKAGE_BUGREPORT}")
message(STATUS "Package install prefix: ${CMAKE_INSTALL_PREFIX}")
-# Enable C89 standard
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c89")
-
include(FindPkgConfig)
include(CompilerUtils)
+test_and_set_c_compiler_flag_global(-std=c89)
test_and_set_c_compiler_flag_global(-Wall)
test_and_set_c_compiler_flag_global(-Werror)
test_and_set_c_compiler_flag_global(-Wundef)
@@ -58,8 +56,8 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
MACRO_ADD_COMPILE_FLAGS(irm -DCONFIG_OUROBOROS_DEBUG)
endif (CMAKE_BUILD_TYPE MATCHES Debug)
-include(FeatureSummary)
-print_enabled_features()
+#include(FeatureSummary)
+#print_enabled_features()
# Uninstall target
configure_file(