From 0947d80afc4d2cd41e9faece16655ca0d124e142 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 6 Feb 2014 08:42:00 +0000
Subject: [PATCH] Include the library with dlopen() and friends.

---
 src/xpdev/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xpdev/CMakeLists.txt b/src/xpdev/CMakeLists.txt
index d36dbab09a..40430e58fc 100644
--- a/src/xpdev/CMakeLists.txt
+++ b/src/xpdev/CMakeLists.txt
@@ -55,6 +55,8 @@ endif()
 
 add_library(xpdev SHARED ${SOURCE})
 
+target_link_libraries(xpdev ${CMAKE_DL_LIBS})
+
 CHECK_INCLUDE_FILES(inttypes.h HAS_INTTYPES_H)
 if(HAS_INTTYPES_H)
     target_compile_definitions(xpdev PUBLIC HAS_INTTYPES_H)
-- 
GitLab