Skip to content

Commit 8ff274a

Browse files
nathantsoifpistm
authored andcommitted
make cmake work on macos
1 parent baf3e2d commit 8ff274a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/FindArduinoCtags.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function(get_ctags)
4343
set(OSCODE "mingw32")
4444
set(ARCHIVE_EXT ".zip")
4545
endif()
46-
elseif (${HOST_OS} STREQUAL "Darwin")
46+
elseif (${HOST_OS} STREQUAL "Darwin" OR ${HOST_OS} STREQUAL "macOS")
4747
if(${CPUCODE} STREQUAL "x86_64")
4848
set(OSCODE "apple-darwin")
4949
set(ARCHIVE_EXT ".zip")

cmake/ensure_core_deps.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function(get_host OUTVAR)
3333
if (${HOST_ARCH} MATCHES "^(AMD64|X86_64|x64|I386|IA32|x86|I686)$")
3434
set(${OUTVAR} "i686-mingw32" PARENT_SCOPE)
3535
endif()
36-
elseif (${HOST_OS} STREQUAL "Darwin")
36+
elseif (${HOST_OS} STREQUAL "Darwin" OR ${HOST_OS} STREQUAL "macOS")
3737
if (${HOST_ARCH} MATCHES "^(AMD64|X86_64|x64)$")
3838
set(${OUTVAR} "x86_64-apple-darwin" PARENT_SCOPE)
3939
endif()

0 commit comments

Comments
 (0)