diff --git a/cmake/windows-setup.cmake b/cmake/windows-setup.cmake
index 7844c1a28ba7a39d7a15d20df2eeb8b46263ed22..04cf603575a2d541e72c97d05b9906925482d167 100644
--- a/cmake/windows-setup.cmake
+++ b/cmake/windows-setup.cmake
@@ -86,5 +86,6 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows")
   if (NOT (${FLEX_FOUND} AND ${BISON_FOUND}))
     message(STATUS "flex and bison not found. Disable stream_processor building.")
     set(FLB_STREAM_PROCESSOR No)
+    set(FLB_RECORD_ACCESSOR  No)
   endif()
 endif()