File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 33#
44# @param {string} VAR_NAME Variable name to set.
55# @param {string} BINARY_PATH Path to the cmake toolchain binary.
6- function (set_toolchian_binary_var VAR_NAME BINARY_PATH)
6+ function (set_toolchain_binary_var VAR_NAME BINARY_PATH)
77 if (NOT EXISTS "${BINARY_PATH} " )
88 message (FATAL_ERROR "Required cmake toolchain binary not found: ${BINARY_PATH} " )
99 endif ()
@@ -22,12 +22,12 @@ execute_process(
2222if (NOT 0 EQUAL BREW_RESULT)
2323 message (
2424 FATAL_ERROR
25- "Failed to locate LLVM v15 using Homebrew. Please ensure llvm@15 is installed: 'brew \
26- install llvm@15'"
25+ "Failed to locate LLVM v15 using Homebrew. Please ensure llvm@15 is installed: 'brew"
26+ " install llvm@15'"
2727 )
2828endif ()
2929
30- set_toolchian_binary_var (CMAKE_C_COMPILER "${LLVM_TOOLCHAIN_PREFIX} /bin/clang" )
31- set_toolchian_binary_var (CMAKE_CXX_COMPILER "${LLVM_TOOLCHAIN_PREFIX} /bin/clang++" )
32- set_toolchian_binary_var (CMAKE_AR "${LLVM_TOOLCHAIN_PREFIX} /bin/llvm-ar" )
33- set_toolchian_binary_var (CMAKE_RANLIB "${LLVM_TOOLCHAIN_PREFIX} /bin/llvm-ranlib" )
30+ set_toolchain_binary_var (CMAKE_C_COMPILER "${LLVM_TOOLCHAIN_PREFIX} /bin/clang" )
31+ set_toolchain_binary_var (CMAKE_CXX_COMPILER "${LLVM_TOOLCHAIN_PREFIX} /bin/clang++" )
32+ set_toolchain_binary_var (CMAKE_AR "${LLVM_TOOLCHAIN_PREFIX} /bin/llvm-ar" )
33+ set_toolchain_binary_var (CMAKE_RANLIB "${LLVM_TOOLCHAIN_PREFIX} /bin/llvm-ranlib" )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function(setup_toolchains)
1414 if ("${MACOS_VERSION} " VERSION_LESS "15" )
1515 set (CMAKE_TOOLCHAIN_FILE
1616 "${CMAKE_CURRENT_SOURCE_DIR} /cmake/Toolchains/llvm-clang-15-toolchain.cmake"
17- CACHE STRING
17+ CACHE FILEPATH
1818 "Toolchain file"
1919 )
2020 endif ()
@@ -42,8 +42,8 @@ function(validate_compiler_versions)
4242 if ("${CMAKE_CXX_COMPILER_VERSION} " VERSION_LESS "${CXX_COMPILER_MIN_VERSION} " )
4343 message (
4444 FATAL_ERROR
45- "${CMAKE_CXX_COMPILER_ID} version ${CMAKE_CXX_COMPILER_VERSION} is too low. Must be at \
46- least ${CXX_COMPILER_MIN_VERSION} ."
45+ "${CMAKE_CXX_COMPILER_ID} version ${CMAKE_CXX_COMPILER_VERSION} is too low. Must be at"
46+ " least ${CXX_COMPILER_MIN_VERSION} ."
4747 )
4848 endif ()
4949endfunction ()
You can’t perform that action at this time.
0 commit comments