[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [ktexteditor] /: Build on Mac OS X
From: Harald Fernengel <harry () kdevelop ! org>
Date: 2014-02-14 19:39:56
Message-ID: E1WEOc8-0002ft-8Z () scm ! kde ! org
[Download RAW message or body]
Git commit d4242967d9c954abbb6972febff6080b7dfac7de by Harald Fernengel.
Committed on 14/02/2014 at 19:38.
Pushed by harald into branch 'master'.
Build on Mac OS X
For some reason, cmake picks up fdatasync(), although the function
call doesn't exist. Make the check a bit stricter by checking
whether the symbol actually exists in libc.
M +2 -1 CMakeLists.txt
http://commits.kde.org/ktexteditor/d4242967d9c954abbb6972febff6080b7dfac7de
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d94185b..20bd704 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,7 @@ include(ECMSetupVersion)
include(ECMGenerateHeaders)
include(CMakePackageConfigHelpers)
include(CheckFunctionExists)
+include(CheckSymbolExists)
include(KDEInstallDirs)
include(KDEFrameworkCompilerSettings)
include(KDECMakeSettings)
@@ -86,7 +87,7 @@ install(FILES
)
=
# config.h
-check_function_exists (fdatasync HAVE_FDATASYNC)
+check_symbol_exists (fdatasync unistd.h HAVE_FDATASYNC)
configure_file (config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
=
# let our config.h be found first in any case
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic