diff options
Diffstat (limited to 'Utilities/Release/release_cmake.sh.in')
-rwxr-xr-x | Utilities/Release/release_cmake.sh.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Utilities/Release/release_cmake.sh.in b/Utilities/Release/release_cmake.sh.in index 12442c6..1487213 100755 --- a/Utilities/Release/release_cmake.sh.in +++ b/Utilities/Release/release_cmake.sh.in @@ -79,9 +79,15 @@ if [ ! -z "@CONFIGURE_WITH_CMAKE@" ]; then @CMAKE_CONFIGURE_PATH@ ../@CMAKE_VERSION@ check_exit_value $? "Configure cmake" || exit 1 else - echo "Run cmake bootstrap --parallel=@PROCESSORS@" - ../@CMAKE_VERSION@/bootstrap --parallel=@PROCESSORS@ - check_exit_value $? "Bootstrap cmake" || exit 1 + if [ -z "@INSTALL_PREFIX@" ]; then + echo "Run cmake bootstrap --parallel=@PROCESSORS@" + ../@CMAKE_VERSION@/bootstrap --parallel=@PROCESSORS@ + check_exit_value $? "Bootstrap cmake" || exit 1 + else + echo "Run cmake bootstrap --prefix=@INSTALL_PREFIX@ --parallel=@PROCESSORS@" + ../@CMAKE_VERSION@/bootstrap --prefix=@INSTALL_PREFIX@ --parallel=@PROCESSORS@ + check_exit_value $? "Bootstrap cmake" || exit 1 + fi fi echo "Build cmake with @MAKE@" |