--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -384,9 +384,7 @@
 	message("Git commit hash: ${LWS_BUILD_HASH}")
 endif()
 
-if ("${LWS_BUILD_HASH}" STREQUAL "")
 	set(LWS_BUILD_HASH "unknown")
-endif()
 
 set(PACKAGE "libwebsockets")
 set(CPACK_RPM_PACKAGE_LICENSE "MIT")
