diff --git a/CMakeLists.txt b/CMakeLists.txt
index d59dfacbb5528fcc72df36d3f2821a2dabe539d6..34d0f6a834733fb56cc35384b877714641be2b2c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -381,7 +381,7 @@ SET( libringclient_extra_LIB_HDRS
   src/typedefs.h
 )
 
-IF(${ENABLE_LIBWRAP} MATCHES false)
+IF(${ENABLE_LIBWRAP} MATCHES true)
    # done this way because of bug in cmake 2.8
    # (not necessary in 3.0+)
 ELSE()