diff --git a/cmake/ProtobufMutator.cmake b/cmake/ProtobufMutator.cmake
index 44672a7af00cec09e63609d4ac2b5501f9143431..e515d8e51fb5093301f0c5531de6ced698bffc3d 100644
--- a/cmake/ProtobufMutator.cmake
+++ b/cmake/ProtobufMutator.cmake
@@ -37,7 +37,7 @@ include_directories(${PROTOBUF_INCLUDE_DIRS})
 set(PROTOBUF_LIBRARIES protobuf)
 if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
   set(PROTOBUF_LIBRARIES protobufd)
-endif(CMAKE_BUILD_TYPE)
+endif()
 
 foreach(lib ${PROTOBUF_LIBRARIES})
   set(LIB_PROTOBUF_PATH ${PROTOBUF_INSTALL_DIR}/lib/lib${lib}.a)