aboutsummaryrefslogtreecommitdiff
path: root/kde-modules
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2014-05-04 12:44:59 -0400
committerAllen Winter <allen.winter@kdab.com>2014-05-04 12:44:59 -0400
commitea75468cd820d17317ef2278ebebe3ca1b61d936 (patch)
tree28d9b9c3a16988bb922717b05f5054f83f62d121 /kde-modules
parent5f60617c2049fc4d27154a365be3499506cd707f (diff)
downloadextra-cmake-modules-ea75468cd820d17317ef2278ebebe3ca1b61d936.tar.gz
extra-cmake-modules-ea75468cd820d17317ef2278ebebe3ca1b61d936.tar.bz2
On Mac, define _DARWIN_C_SOURCE and QT_MAC_USE_COCOA unconditionally
REVIEW: 117682
Diffstat (limited to 'kde-modules')
-rw-r--r--kde-modules/KDECompilerSettings.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake
index 46b7719c..bfbf4b67 100644
--- a/kde-modules/KDECompilerSettings.cmake
+++ b/kde-modules/KDECompilerSettings.cmake
@@ -366,6 +366,12 @@ if (WIN32)
)
endif()
+if (APPLE)
+ #full Single Unix Standard v3 (SUSv3) conformance (the Unix API)
+ _kde_add_platform_definitions(-D_DARWIN_C_SOURCE)
+ #Cocoa is unconditional since we only support OS X 10.6 and above
+ _kde_add_platform_definitions(-DQT_MAC_USE_COCOA)
+endif()
############################################################