From 7ca3a6b1e48ed49eb582e1451eb5d7687adb6b37 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Tue, 28 Jan 2014 17:35:20 +0000 Subject: Add a note about why we use C89 instead of C99 --- kde-modules/KDECompilerSettings.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake index ba9b03f1..a4683b04 100644 --- a/kde-modules/KDECompilerSettings.cmake +++ b/kde-modules/KDECompilerSettings.cmake @@ -123,6 +123,8 @@ endif() # Pick sensible versions of the C and C++ standards # FIXME: MSVC, Intel on windows? if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + # We use the C89 standard because that is what is common to all our + # compilers (in particular, MSVC 2010 does not support C99) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=iso9899:1990") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" AND NOT WIN32) -- cgit v1.2.1