Commit 10a2fc11 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Workaround for System Integrity Protection on MacOSX 10.11 (CORALCOOL-2884)

Install a private copy of bash and env on Mac


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@19946 4525493e-7705-40b1-a816-d608a930855b
parent 8ae1c01c
......@@ -171,6 +171,16 @@ execute_process(COMMAND chmod +x ${CMAKE_BINARY_DIR}/TMP.install/run_nightly_tes
install(PROGRAMS ${CMAKE_BINARY_DIR}/TMP.install/cc-run ${CMAKE_BINARY_DIR}/TMP.install/cc-sh ${CMAKE_BINARY_DIR}/TMP.install/run_nightly_tests_cmake.sh DESTINATION .)
install(DIRECTORY ${CMAKE_BINARY_DIR}/TMP.install/env DESTINATION . USE_SOURCE_PERMISSIONS PATTERN "*.pyc" EXCLUDE PATTERN "*.xenvc" EXCLUDE)
# Workarounds for System Integrity Protection on MacOSX 10.11 (CORALCOOL-2884)
IF(CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin")
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/bin/bash COMMAND ${CMAKE_COMMAND} -E copy /bin/bash ${CMAKE_BINARY_DIR}/bin/bash DEPENDS /bin/bash)
add_custom_target(bin_bash ALL DEPENDS ${CMAKE_BINARY_DIR}/bin/bash)
install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/bash DESTINATION bin)
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/bin/env COMMAND ${CMAKE_COMMAND} -E copy /usr/bin/env ${CMAKE_BINARY_DIR}/bin/env DEPENDS /usr/bin/env)
add_custom_target(bin_env ALL DEPENDS ${CMAKE_BINARY_DIR}/bin/env)
install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/env DESTINATION bin)
ENDIF()
# HACK - install this only for lcgcmake and native host builds
# (otherwise should choose a platform-dependent name)
if("$ENV{CORALCOOL_CMAKE_LCGSUMMARY} " STREQUAL " ")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment