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
path: root/cmake
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2017-01-26 03:15:12 +0300
committerJanek Bevendorff <janek@jbev.net>2017-01-26 03:15:12 +0300
commit292ed892c105de7281654796abb1e6aa4c8779ab (patch)
tree2fbe73fe8198ceb5e58ecd92e0e2b4ab3a008026 /cmake
parent1310b34e9c9d7b70c8eb00c55680b72dee8f5e13 (diff)
Fix Windows linker and runtime errors when building against static Qt
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindLibGPGError.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/FindLibGPGError.cmake b/cmake/FindLibGPGError.cmake
new file mode 100644
index 000000000..fe9ef9123
--- /dev/null
+++ b/cmake/FindLibGPGError.cmake
@@ -0,0 +1,9 @@
+
+find_path(GPGERROR_INCLUDE_DIR gpg-error.h)
+
+find_library(GPGERROR_LIBRARIES gpg-error)
+
+mark_as_advanced(GPGERROR_LIBRARIES GPGERROR_INCLUDE_DIR)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(LibGPGError DEFAULT_MSG GPGERROR_LIBRARIES GPGERROR_INCLUDE_DIR)