From 8ff274affbbce42f1d452e74365b66ba03e66c6c Mon Sep 17 00:00:00 2001 From: Nathan Date: Sun, 9 Jul 2023 20:11:26 -0400 Subject: [PATCH] make cmake work on macos --- cmake/FindArduinoCtags.cmake | 2 +- cmake/ensure_core_deps.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindArduinoCtags.cmake b/cmake/FindArduinoCtags.cmake index 305e147846..95a16749a0 100644 --- a/cmake/FindArduinoCtags.cmake +++ b/cmake/FindArduinoCtags.cmake @@ -43,7 +43,7 @@ function(get_ctags) set(OSCODE "mingw32") set(ARCHIVE_EXT ".zip") endif() - elseif (${HOST_OS} STREQUAL "Darwin") + elseif (${HOST_OS} STREQUAL "Darwin" OR ${HOST_OS} STREQUAL "macOS") if(${CPUCODE} STREQUAL "x86_64") set(OSCODE "apple-darwin") set(ARCHIVE_EXT ".zip") diff --git a/cmake/ensure_core_deps.cmake b/cmake/ensure_core_deps.cmake index 99fa25bf84..9aaf552bba 100644 --- a/cmake/ensure_core_deps.cmake +++ b/cmake/ensure_core_deps.cmake @@ -33,7 +33,7 @@ function(get_host OUTVAR) if (${HOST_ARCH} MATCHES "^(AMD64|X86_64|x64|I386|IA32|x86|I686)$") set(${OUTVAR} "i686-mingw32" PARENT_SCOPE) endif() - elseif (${HOST_OS} STREQUAL "Darwin") + elseif (${HOST_OS} STREQUAL "Darwin" OR ${HOST_OS} STREQUAL "macOS") if (${HOST_ARCH} MATCHES "^(AMD64|X86_64|x64)$") set(${OUTVAR} "x86_64-apple-darwin" PARENT_SCOPE) endif()