diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-02-04 02:17:18 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-02-04 02:17:18 +0100 |
commit | 065dfb3f5d6d82d782602dcad806967b7902378a (patch) | |
tree | 4f9a554d3d6acc75ee58e053593a52eecfbae326 /scripts/CMakeLists.txt | |
parent | b6779a71c448a77460a2be0ce9a9e0e30b5bbe92 (diff) | |
download | mariadb-git-065dfb3f5d6d82d782602dcad806967b7902378a.tar.gz |
- Optionally, copy mysqld renamed to mysqld-debug from debug build directory into resulting package
- Fix to mysql_install_db.pl to the correct place on Windows ( under scripts directory)
Diffstat (limited to 'scripts/CMakeLists.txt')
-rwxr-xr-x | scripts/CMakeLists.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 44de52f254f..dd9c5785dcb 100755 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -154,12 +154,21 @@ ELSE() SET(localstatedir ${MYSQL_DATADIR}) ENDIF() +IF(UNIX) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_install_db.sh - ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) + ${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db ESCAPE_QUOTES @ONLY) + SET(DEST ${INSTALL_BINDIR}) + 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(FILES - "${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db" - DESTINATION bin + "${CMAKE_CURRENT_BINARY_DIR}/mysql_install_db${EXT}" + DESTINATION ${DEST} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE |