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:
authorDennis <yowidin@gmail.com>2022-09-05 17:38:02 +0300
committerGitHub <noreply@github.com>2022-09-05 17:38:02 +0300
commitbd809ba90b25d9a0a7634353025efcd0e4c66880 (patch)
treed6923eb310c546a689e7f153debbfe93c68eb072 /CMakeLists.txt
parent15b9e82f93971a1cd2f63f3b21eafcf3601ec70c (diff)
TouchID support refactoring (#8311)
Fixes #7695 - Properly set compile flags based on availability of watch unlock in the API.
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)