diff --git a/cmake/mariadb_connector_c.cmake b/cmake/mariadb_connector_c.cmake index b15b45acd44..b1d784ff39b 100644 --- a/cmake/mariadb_connector_c.cmake +++ b/cmake/mariadb_connector_c.cmake @@ -43,6 +43,8 @@ ADD_SUBDIRECTORY(libmariadb) IF(UNIX) INSTALL(CODE "EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -E make_directory ${INSTALL_BINDIR} + WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}) + EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -E create_symlink mariadb_config ${INSTALL_BINDIR}/mariadb-config WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX})" COMPONENT Development)