diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-03-11 15:41:45 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2010-03-11 15:41:45 +0100 |
commit | c8141ce4c0c5280af1d1863bcf6352cb0b3730a4 (patch) | |
tree | 5a5048bff129acf9671e24f32bf579ebcc19d288 /scripts | |
parent | b11740894eb4aceeafde2bbd848adb24ef7cc67e (diff) | |
download | mariadb-git-c8141ce4c0c5280af1d1863bcf6352cb0b3730a4.tar.gz |
Bug#51949 - make_binary_distribution fails on Mac.
Unquoted ${CMAKE_CPACK_COMMAND} is used in this script.
This variable resolves to cpack's real path with spaces, e.g
/Applications/CMake 2.6.4-app/Contents/bin/cpack.
Script fails due to lack of quotes.
Fix is to use quotes around ${CMAKE_CPACK_COMMAND}.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 26dfb243897..3352eb23a73 100755 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -65,7 +65,7 @@ ADD_CUSTOM_TARGET(GenFixPrivs IF(UNIX) FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_binary_distribution - "cd ${CMAKE_BINARY_DIR} && ${CMAKE_CPACK_COMMAND} -G TGZ --config CPackConfig.cmake" ) + "cd ${CMAKE_BINARY_DIR} && '${CMAKE_CPACK_COMMAND}' -G TGZ --config CPackConfig.cmake" ) EXECUTE_PROCESS( COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/make_binary_distribution ) |