diff --git a/CMakeLists.txt b/CMakeLists.txt
index c9e299983e6671ce89c351ed2f41c07a8dcd3604..a3a62651bfcd006ef6921068f369064da1c649bc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -645,7 +645,7 @@ if(QML_DEBUGGING)
 endif()
 
 
-if(NOT MSVC)
+if(NOT MSVC AND NOT HAIKU)
 	if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug" OR CI_BUILD)
 		target_compile_options(nheko PRIVATE "-Werror")
 	endif()