diff --git a/cmake/ProtobufMutator.cmake b/cmake/ProtobufMutator.cmake
index 83c1a51f702fec74baede9052bc459a0be9f213e..44672a7af00cec09e63609d4ac2b5501f9143431 100644
--- a/cmake/ProtobufMutator.cmake
+++ b/cmake/ProtobufMutator.cmake
@@ -34,7 +34,10 @@ set(PROTOBUF_INSTALL_DIR ${LPM_INSTALL_DIR}/src/${LPM_TARGET}-build/${PROTOBUF_T
 set(PROTOBUF_INCLUDE_DIRS ${PROTOBUF_INSTALL_DIR}/include)
 include_directories(${PROTOBUF_INCLUDE_DIRS})
 
-set(PROTOBUF_LIBRARIES protobufd)
+set(PROTOBUF_LIBRARIES protobuf)
+if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
+  set(PROTOBUF_LIBRARIES protobufd)
+endif(CMAKE_BUILD_TYPE)
 
 foreach(lib ${PROTOBUF_LIBRARIES})
   set(LIB_PROTOBUF_PATH ${PROTOBUF_INSTALL_DIR}/lib/lib${lib}.a)