diff options
author | Sreedhar.S <sreedhar.sreedhargadda@oracle.com> | 2013-10-09 17:08:45 +0530 |
---|---|---|
committer | Sreedhar.S <sreedhar.sreedhargadda@oracle.com> | 2013-10-09 17:08:45 +0530 |
commit | b7f272ccaf66b8052d1becc9f4a5f5c983e62f31 (patch) | |
tree | d7768770ba48a47fe7cb980866bdacd136126665 /scripts | |
parent | 5411549732cf543025fd458bbf9dd2e96bf20060 (diff) | |
download | mariadb-git-b7f272ccaf66b8052d1becc9f4a5f5c983e62f31.tar.gz |
BUG 17560050 - MYSQL_INSTALL_DB SCRIPT FAILING WITH RESOLVEIP ISSUES.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/CMakeLists.txt | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index d5a3311d942..16d820e147e 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -198,17 +198,23 @@ ELSE() SET(localstatedir ${MYSQL_DATADIR}) ENDIF() -IF(NOT WIN32) - CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.pl.in - ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) +IF(UNIX) +CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.sh + ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) SET(DEST ${INSTALL_SCRIPTDIR}) + SET(EXT) +ELSE() + CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.pl.in + ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db.pl ESCAPE_QUOTES @ONLY) + SET(DEST ${INSTALL_SCRIPTDIR}) + SET(EXT ".pl") +ENDIF() - INSTALL_SCRIPT( - "${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db" - DESTINATION ${DEST} - COMPONENT Server +INSTALL_SCRIPT( + "${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db${EXT}" + DESTINATION ${DEST} + COMPONENT Server ) -ENDIF() SET(prefix "${CMAKE_INSTALL_PREFIX}") SET(sysconfdir ${prefix}) |