diff options
author | Dirk Mueller <mueller@kde.org> | 2007-02-07 15:10:48 +0000 |
---|---|---|
committer | Dirk Mueller <mueller@kde.org> | 2007-02-07 15:10:48 +0000 |
commit | 5c8261b78d577b039f3e6d6cd6eea84c94084711 (patch) | |
tree | c63d7c7438600a602ddc182b63687cd6a79ea0c6 /modules | |
parent | b39cce12655174dd70716e36be79f97571cf7403 (diff) | |
download | extra-cmake-modules-5c8261b78d577b039f3e6d6cd6eea84c94084711.tar.gz extra-cmake-modules-5c8261b78d577b039f3e6d6cd6eea84c94084711.tar.bz2 |
we don't want -ansi in C flags, we want c89 plus BSD 4.4 extensions.
Fixes snprintf not being available (which is a very very stupid
thing to do)
svn path=/trunk/KDE/kdelibs/; revision=631262
Diffstat (limited to 'modules')
-rw-r--r-- | modules/FindKDE4Internal.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index fd1919bd..1f38a57e 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -681,8 +681,9 @@ if (CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_C_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs") if (CMAKE_SYSTEM_NAME MATCHES Linux) - set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common") + set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common") set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common") + add_definitions (-D_BSD_SOURCE) endif (CMAKE_SYSTEM_NAME MATCHES Linux) |