diff --git a/CMakeLists.txt b/CMakeLists.txt
index 08c248f32a122deb25b86534ed038e460e269500..e0bdd0d6da9109bccb278de270204acc2d22201e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,6 +40,7 @@ list (APPEND dhtnet_SOURCES
     src/security/tls_session.cpp
     src/security/certstore.cpp
     src/security/threadloop.cpp
+    src/security/diffie-hellman.cpp
     src/turn/turn_cache.cpp
     src/turn/turn_transport.cpp
     src/upnp/upnp_context.cpp
diff --git a/src/security/diffie-hellman.cpp b/src/security/diffie-hellman.cpp
index b9970ead24633015feeb8f9c22f3f3c6a73eff5f..e15e4182e094515138c9c21c86b6425b77682b8b 100644
--- a/src/security/diffie-hellman.cpp
+++ b/src/security/diffie-hellman.cpp
@@ -15,7 +15,6 @@
  *  along with this program. If not, see <https://www.gnu.org/licenses/>.
  */
 #include "diffie-hellman.h"
-#include "logger.h"
 #include "fileutils.h"
 
 #include <chrono>