Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions cmake/external/ROOT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@ if(APPLE)
"${DETECTED_OS_VERS}" MATCHES "^osx-12" OR
"${DETECTED_OS_VERS}" MATCHES "^osx-11.6" OR
"${DETECTED_OS_VERS}" MATCHES "^osx-11.7")
# Test if Xcode is installed via `xcodebuild -version`.
message(STATUS "##### Checking if XCODE is installed")
execute_process(COMMAND bash "-c" "xcodebuild -version" ERROR_VARIABLE XCODE_ERROR)
if("${XCODE_ERROR}" STREQUAL "")
message(STATUS "##### XCODE is installed")
else()
message(FATAL_ERROR "##### XCODE is not installed correctly. Please install XCODE (and then the command line tools). Consult issue #352 and the documentation")
Comment thread
TobiasDuswald marked this conversation as resolved.
Outdated
endif()
# Determine XCDOE version
execute_process(COMMAND bash "-c" "xcodebuild -version | sed -En 's/Xcode[[:space:]]+([0-9\.]*)/\\1/p'" OUTPUT_VARIABLE XCODE_VERS)
message(STATUS "##### XCODE version: ${XCODE_VERS}")
# Set appropriate ROOT version depending on XCODE version
if("${XCODE_VERS}" GREATER_EQUAL "14.3")
message(STATUS "##### Using ROOT builds for XCODE 14.3")
set(ROOT_TAR_FILE root_v6.29.01_cxx14_python3.9_osx-xcode-14.3-${DETECTED_ARCH}.tar.gz)
Expand Down