summary refs log tree commit diff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-02-14 00:32:08 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-02-14 00:46:06 +0100
commitc8bc89d0fa93937a6729a95fa04c3c011bc749d4 (patch)
treef776821112de5b170a3a397bbd2d94dd18b28f8a /CMakeLists.txt
parentMerge pull request #114 from adasauce/image-overlay-fix (diff)
downloadnheko-c8bc89d0fa93937a6729a95fa04c3c011bc749d4.tar.xz
try out flatpak nightly build
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 4 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a2c4a5b5..eebac250 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -129,8 +129,7 @@ if(USE_BUNDLED_LMDB)
 	hunter_add_package(lmdb)
 	find_package(liblmdb CONFIG REQUIRED)
 else()
-	include(FindPkgConfig)
-	pkg_search_module(lmdb REQUIRED IMPORTED_TARGET lmdb)
+	find_package(LMDB)
 endif()
 
 #
@@ -561,15 +560,11 @@ target_link_libraries(nheko PRIVATE
 	Qt5::QuickWidgets
 	nlohmann_json::nlohmann_json
 	lmdbxx::lmdbxx
+	liblmdb::lmdb
 	tweeny)
 
-if(USE_BUNDLED_LMDB)
-	target_link_libraries(nheko PRIVATE liblmdb::lmdb)
-	if(MSVC)
-		target_link_libraries(nheko PRIVATE ntdll)
-	endif()
-else()
-	target_link_libraries(nheko PRIVATE PkgConfig::lmdb)
+if(MSVC)
+	target_link_libraries(nheko PRIVATE ntdll)
 endif()