aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2012-08-16 00:01:24 -0300
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2012-08-16 00:01:24 -0300
commitad89c051cfd9483f2cb90ed1a5bf8462ba0fa1a2 (patch)
treec09aa654d30d055a95d9a58b4e58c2424faf5301
parent439faef0fb0f78a147efaa0528785225168b4085 (diff)
downloadextra-cmake-modules-ad89c051cfd9483f2cb90ed1a5bf8462ba0fa1a2.tar.gz
extra-cmake-modules-ad89c051cfd9483f2cb90ed1a5bf8462ba0fa1a2.tar.bz2
Do not define _GNU_SOURCE on BSD systems.
This macro only makes sense on glibc-based systems, which honour that definition according to feature_test_macros(7).
-rw-r--r--kde-modules/KDECompilerSettings.cmake5
1 files changed, 0 insertions, 5 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake
index 506bb2c0..bb50c681 100644
--- a/kde-modules/KDECompilerSettings.cmake
+++ b/kde-modules/KDECompilerSettings.cmake
@@ -182,11 +182,6 @@ if ("${CMAKE_SYSTEM_NAME}" MATCHES Linux OR "${CMAKE_SYSTEM_NAME}" STREQUAL GNU)
endif()
-if ("${CMAKE_SYSTEM_NAME}" MATCHES BSD)
- set ( _KDE4_PLATFORM_DEFINITIONS -D_GNU_SOURCE )
-endif()
-
-
if (UNIX)
set ( _KDE4_PLATFORM_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS} -D_LARGEFILE64_SOURCE)