mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
No write check on install dir with USE_SUPERBUILD=OFF
This commit is contained in:
parent
f5432718c1
commit
bfa88c88eb
@ -54,14 +54,14 @@ if(INSTALL_DIR)
|
|||||||
set(INSTALL_DIR_DEFAULT ${INSTALL_DIR})
|
set(INSTALL_DIR_DEFAULT ${INSTALL_DIR})
|
||||||
endif(INSTALL_DIR)
|
endif(INSTALL_DIR)
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX AND USE_SUPERBUILD)
|
||||||
message("Checking for write permissions in install directory...")
|
message("Checking for write permissions in install directory...")
|
||||||
execute_process(COMMAND mkdir -p ${CMAKE_INSTALL_PREFIX})
|
execute_process(COMMAND mkdir -p ${CMAKE_INSTALL_PREFIX})
|
||||||
execute_process(COMMAND test -w ${CMAKE_INSTALL_PREFIX} RESULT_VARIABLE res)
|
execute_process(COMMAND test -w ${CMAKE_INSTALL_PREFIX} RESULT_VARIABLE res)
|
||||||
if(res)
|
if(res)
|
||||||
message(WARNING "No write access at install directory, please set correct permissions")
|
message(WARNING "No write access at install directory, please set correct permissions")
|
||||||
endif()
|
endif()
|
||||||
endif(UNIX)
|
endif(UNIX AND USE_SUPERBUILD)
|
||||||
|
|
||||||
if (USE_SUPERBUILD)
|
if (USE_SUPERBUILD)
|
||||||
project (SUPERBUILD)
|
project (SUPERBUILD)
|
||||||
|
Loading…
Reference in New Issue
Block a user