aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/KDECompilerSettings.cmake
diff options
context:
space:
mode:
authorAlex Merry <kde@randomguy3.me.uk>2014-02-04 19:09:35 +0000
committerAlex Merry <kde@randomguy3.me.uk>2014-02-14 13:23:53 +0000
commit7fcc57a2055f04ca1af880e18309f5d1ecfc5f3c (patch)
tree1ae9d404727945584ae3b3c92cbb65dc2c127a66 /kde-modules/KDECompilerSettings.cmake
parent2ec165030b2947e6a4e1b29843b20fbff17aaa1f (diff)
downloadextra-cmake-modules-7fcc57a2055f04ca1af880e18309f5d1ecfc5f3c.tar.gz
extra-cmake-modules-7fcc57a2055f04ca1af880e18309f5d1ecfc5f3c.tar.bz2
Improve docs for kde modules
REVIEW: 115488
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.