-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update fsevents fix for legacy macOS (#51)
- Loading branch information
1 parent
107703d
commit 72f5d0b
Showing
2 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
include(CMakeFindDependencyMacro) | ||
|
||
if(APPLE) | ||
option(USE_LIBSECRET "Use libsecret on macOS instead of Apple keychain" OFF) | ||
endif() | ||
|
||
if(DEFINED ENV{VCPKG_ROOT}) | ||
file(TO_CMAKE_PATH $ENV{VCPKG_ROOT} VCPKG_ROOT) | ||
if(EXISTS "${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake") | ||
|
@@ -18,7 +22,10 @@ if(USING_VCPKG) | |
endif() | ||
if(WIN32) | ||
find_dependency(sqlcipher CONFIG REQUIRED) | ||
elseif(LINUX) | ||
elseif(APPLE) | ||
find_library(CF_LIBRARY CoreFoundation) | ||
find_library(CS_LIBRARY CoreServices) | ||
find_library(IOKIT_LIBRARY IOKit) | ||
find_dependency(Threads REQUIRED) | ||
find_dependency(OpenSSL REQUIRED) | ||
find_dependency(PkgConfig REQUIRED) | ||
|
@@ -27,12 +34,12 @@ elseif(LINUX) | |
pkg_check_modules(gmodule REQUIRED IMPORTED_TARGET gmodule-2.0) | ||
pkg_check_modules(gobject REQUIRED IMPORTED_TARGET gobject-2.0) | ||
pkg_check_modules(gthread REQUIRED IMPORTED_TARGET gthread-2.0) | ||
pkg_check_modules(libsecret REQUIRED IMPORTED_TARGET libsecret-1) | ||
elseif(APPLE) | ||
find_library(CF_LIBRARY CoreFoundation) | ||
find_library(CS_LIBRARY CoreServices) | ||
find_library(IOKIT_LIBRARY IOKit) | ||
find_library(SECURITY_LIBRARY Security) | ||
if(USE_LIBSECRET) | ||
pkg_check_modules(libsecret REQUIRED IMPORTED_TARGET libsecret-1) | ||
else() | ||
find_library(SECURITY_LIBRARY Security) | ||
endif() | ||
else() | ||
find_dependency(Threads REQUIRED) | ||
find_dependency(OpenSSL REQUIRED) | ||
find_dependency(PkgConfig REQUIRED) | ||
|
@@ -41,6 +48,7 @@ elseif(APPLE) | |
pkg_check_modules(gmodule REQUIRED IMPORTED_TARGET gmodule-2.0) | ||
pkg_check_modules(gobject REQUIRED IMPORTED_TARGET gobject-2.0) | ||
pkg_check_modules(gthread REQUIRED IMPORTED_TARGET gthread-2.0) | ||
pkg_check_modules(libsecret REQUIRED IMPORTED_TARGET libsecret-1) | ||
endif() | ||
|
||
check_required_components(libnick) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters