diff --git a/CMakeLists.txt b/CMakeLists.txt
index 42094d2..d4eda66 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -43,7 +43,7 @@ endif()
 
 # --- optional re2c
 find_program(RE2C re2c)
-if(RE2C)
+if(0)
 	# the depfile parser and ninja lexers are generated using re2c.
 	function(re2c IN OUT)
 		add_custom_command(DEPENDS ${IN} OUTPUT ${OUT}