Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index db732d677..717214c51 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,6 +62,25 @@ if(UNIX AND NOT APPLE)
endif()
option(WITH_XC_DOCS "Enable building of documentation" ON)
+if(APPLE)
+ # Perform the platform checks before applying the stricter compiler flags.
+ # Otherwise the kSecAccessControlTouchIDCurrentSet deprecation warning will result in an error.
+ try_compile(XC_APPLE_COMPILER_SUPPORT_BIOMETRY
+ ${CMAKE_CURRENT_BINARY_DIR}/tiometry_test/
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/compiler-checks/macos/control_biometry_support.mm)
+ message(STATUS "Biometry compiler support: ${XC_APPLE_COMPILER_SUPPORT_BIOMETRY}")
+
+ try_compile(XC_APPLE_COMPILER_SUPPORT_TOUCH_ID
+ ${CMAKE_CURRENT_BINARY_DIR}/touch_id_test/
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/compiler-checks/macos/control_touch_id_support.mm)
+ message(STATUS "Touch ID compiler support: ${XC_APPLE_COMPILER_SUPPORT_TOUCH_ID}")
+
+ try_compile(XC_APPLE_COMPILER_SUPPORT_WATCH
+ ${CMAKE_CURRENT_BINARY_DIR}/tiometry_test/
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/compiler-checks/macos/control_watch_support.mm)
+ message(STATUS "Apple watch compiler support: ${XC_APPLE_COMPILER_SUPPORT_WATCH}")
+endif()
+
if(WITH_CCACHE)
# Use the Compiler Cache (ccache) program
# (install with: sudo apt get ccache)