Skip to content

Commit

Permalink
Fix build on MacOSX
Browse files Browse the repository at this point in the history
  • Loading branch information
blizzard4591 committed Feb 20, 2020
1 parent fc7b913 commit d37a004
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ find_package(Qt5Sql REQUIRED)
if (NOT WIN32)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SQLCIPHER REQUIRED sqlcipher)
if (DEFINED SQLCIPHER_LIBRARY_DIRS)
link_directories(${SQLCIPHER_LIBRARY_DIRS})
message(STATUS "Added ${SQLCIPHER_LIBRARY_DIRS} to link directories...")
endif()
else()
find_package(Libsqlcipher REQUIRED)
endif()
Expand Down

0 comments on commit d37a004

Please sign in to comment.