Skip to content

Commit 66fb27a

Browse files
authored
Minor fixes to CMake files (#81)
1 parent 584ee19 commit 66fb27a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ elseif(APPLE)
119119
find_library(SECURITY_LIBRARY Security)
120120
target_link_libraries(${PROJECT_NAME} PUBLIC ${CF_LIBRARY} ${CS_LIBRARY} ${IOKIT_LIBRARY} ${SECURITY_LIBRARY} Threads::Threads PkgConfig::sqlcipher PkgConfig::glib PkgConfig::gio PkgConfig::gmodule PkgConfig::gobject PkgConfig::gthread)
121121
endif()
122-
elseif(LINUX)
122+
else()
123123
set(THREADS_PREFER_PTHREAD_FLAG ON)
124124
find_package(Threads REQUIRED)
125125
find_package(PkgConfig REQUIRED)

cmake/config.cmake.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if(USING_VCPKG)
2222
endif()
2323
if(WIN32)
2424
find_dependency(sqlcipher CONFIG REQUIRED)
25-
else(APPLE)
25+
elseif(APPLE)
2626
find_library(CF_LIBRARY CoreFoundation)
2727
find_library(CS_LIBRARY CoreServices)
2828
find_library(IOKIT_LIBRARY IOKit)
@@ -39,7 +39,7 @@ else(APPLE)
3939
else()
4040
find_library(SECURITY_LIBRARY Security)
4141
endif()
42-
elseif(LINUX)
42+
else()
4343
find_dependency(Threads REQUIRED)
4444
find_dependency(PkgConfig REQUIRED)
4545
pkg_check_modules(sqlcipher REQUIRED IMPORTED_TARGET sqlcipher)

0 commit comments

Comments
 (0)