From e0e856f7c02f00ca1e32c78f99c8d52817908c2b Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 31 Jan 2017 12:20:27 +0100 Subject: [PATCH] Only warn at missing write permissions --- cmake_modules/SuperBuild.cmake | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cmake_modules/SuperBuild.cmake b/cmake_modules/SuperBuild.cmake index ff89da05..fe9b4ef5 100644 --- a/cmake_modules/SuperBuild.cmake +++ b/cmake_modules/SuperBuild.cmake @@ -56,16 +56,7 @@ if(UNIX) execute_process(COMMAND mkdir -p ${INSTALL_DIR}) execute_process(COMMAND test -w ${INSTALL_DIR} RESULT_VARIABLE res) if(res) - message("No write permissions on install directory ${INSTALL_DIR}") - message("The setup routine will now set write permissions by executing following commands, please provide your password when asked for it") - message("> sudo mkdir -p ${INSTALL_DIR}") - message("> sudo chown -r $ENV{USER}:$ENV{USER} ${INSTALL_DIR}") - execute_process(COMMAND sudo mkdir -p ${INSTALL_DIR}) - execute_process(COMMAND sudo chown -R $ENV{USER}:$ENV{USER} ${INSTALL_DIR}) - endif() - execute_process(COMMAND test -w ${INSTALL_DIR} RESULT_VARIABLE res) - if(res) - message(WARNING "still no write access at install directory, please set permissions manually") + message(WARNING "No write access at install directory, please set correct permissions") endif() endif(UNIX)