aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/KDECompilerSettings.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kde-modules/KDECompilerSettings.cmake')
-rw-r--r--kde-modules/KDECompilerSettings.cmake13
1 files changed, 7 insertions, 6 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake
index dfb85d77..3adc90db 100644
--- a/kde-modules/KDECompilerSettings.cmake
+++ b/kde-modules/KDECompilerSettings.cmake
@@ -1,9 +1,9 @@
-# This module sets more useful CMAKE_CXX_FLAGS.
+# Set useful compile and link flags for C++ (and C) code.
#
-# In particular, it enables many more warnings than the default,
-# and sets stricter modes for some compiler features. By default,
-# it disables exceptions; kde_target_enable_exceptions() can be used
-# to re-enable them for a specific target.
+# Enables many more warnings than the default, and sets stricter modes
+# for some compiler features. By default, exceptions are disabled;
+# kde_target_enable_exceptions() can be used to re-enable them for a
+# specific target.
#
#
# This module provides the following functions:
@@ -92,7 +92,8 @@ if (UNIX)
#
# NB: we do NOT define _BSD_SOURCE, as with GNU libc that requires linking
# against the -lbsd-compat library (it changes the behaviour of some
- # functions).
+ # functions). This, however, means that strlcat and strlcpy are not
+ # provided by glibc.
_kde_add_platform_definitions(-D_GNU_SOURCE)
# Enable extra API for using 64-bit file offsets on 32-bit systems.