aboutsummaryrefslogtreecommitdiff
path: root/project/cmake
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2015-05-04 22:27:22 +0200
committerMemphiz <memphis@machzwo.de>2015-05-04 22:27:22 +0200
commit5c572108638f338213f26e8bc20d51a0652cfe6c (patch)
tree1fa1f74b622ba21cf49abffe4bfcac5b459305eb /project/cmake
parent70939032cdade149837cb840f5bd012beb316cff (diff)
[cmake] - only evaluate the sudo check on linux. On darwin with cmake 2.8.12 the execute_process with the multiple commands inside doesn't seem to work (it detects that it needs sudo and so it doesn't install into the addons dir). Bumping to cmake 3.2.2 was an other solution which made it work but bumping cmake is considered to dangerous at this stage. Fixes missing addons on ios and osx builds.
Diffstat (limited to 'project/cmake')
-rw-r--r--project/cmake/addons/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/project/cmake/addons/CMakeLists.txt b/project/cmake/addons/CMakeLists.txt
index 0773713cbf..070c7c7532 100644
--- a/project/cmake/addons/CMakeLists.txt
+++ b/project/cmake/addons/CMakeLists.txt
@@ -122,7 +122,7 @@ include(${APP_ROOT}/project/cmake/scripts/common/check_target_platform.cmake)
# check install permissions
set(ADDON_INSTALL_DIR ${CMAKE_INSTALL_PREFIX})
check_install_permissions(${CMAKE_INSTALL_PREFIX} can_write)
-if(NOT ${can_write} AND NOT WIN32)
+if(NOT ${can_write} AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(NEED_SUDO TRUE)
set(ADDON_INSTALL_DIR ${CMAKE_BINARY_DIR}/.install)
message(STATUS "NEED_SUDO: ${NEED_SUDO}")