diff --git a/cmake/mysql_add_executable.cmake b/cmake/mysql_add_executable.cmake index 0c695480e12..eec370d51af 100644 --- a/cmake/mysql_add_executable.cmake +++ b/cmake/mysql_add_executable.cmake @@ -80,12 +80,12 @@ FUNCTION (MYSQL_ADD_EXECUTABLE) RETURN() ENDIF() IF (WITH_STRIPPED_CLIENT AND NOT target STREQUAL mysqld) - INSTALL(CODE "SET(CMAKE_INSTALL_DO_STRIP 1)" ${COMP}) + INSTALL(CODE "SET(CMAKE_INSTALL_DO_STRIP 1)" COMPONENT ${COMP}) SET(reset_strip ON) ENDIF() MYSQL_INSTALL_TARGETS(${target} DESTINATION ${ARG_DESTINATION} COMPONENT ${COMP}) IF (reset_strip) - INSTALL(CODE "SET(CMAKE_INSTALL_DO_STRIP 0)" ${COMP}) + INSTALL(CODE "SET(CMAKE_INSTALL_DO_STRIP 0)" COMPONENT ${COMP}) ENDIF() ENDIF()