summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2014-01-14 20:26:59 +0100
committerAlbert Astals Cid <aacid@kde.org>2014-01-14 20:26:59 +0100
commitc8a845cf7c7752d3b7dad06013d3154812c66c92 (patch)
tree41dbce1253a06a1ab4fead052aeeba1aa1c14b32 /cmake
parentf0c13ee72e8a7df17bdf847f5e922c01acee1f0d (diff)
Do not define -ansi
We are using long long that is not defined in ansi, so forcing ansi strictness does not make any sense. Bug #72499
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/PopplerMacros.cmake5
1 files changed, 0 insertions, 5 deletions
diff --git a/cmake/modules/PopplerMacros.cmake b/cmake/modules/PopplerMacros.cmake
index 04dfc46d..27ba7af6 100644
--- a/cmake/modules/PopplerMacros.cmake
+++ b/cmake/modules/PopplerMacros.cmake
@@ -116,11 +116,6 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_C_FLAGS_DEBUGFULL "-g3 -fno-inline")
set(CMAKE_C_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs")
- if(CMAKE_SYSTEM_NAME MATCHES Linux)
- set(DEFAULT_COMPILE_WARNINGS_YES "${DEFAULT_COMPILE_WARNINGS_YES} -ansi")
- set(DEFAULT_COMPILE_WARNINGS_KDE "${DEFAULT_COMPILE_WARNINGS_KDE} -ansi")
- endif(CMAKE_SYSTEM_NAME MATCHES Linux)
-
poppler_check_link_flag("-Wl,--as-needed" GCC_HAS_AS_NEEDED)
if(GCC_HAS_AS_NEEDED)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--as-needed")