diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1645a264a..12f8ca999 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -635,6 +635,8 @@ add_library(
   src/ssl/tls_record.cc
 )
 
+target_link_libraries(ssl crypto)
+
 add_executable(
   bssl
 
