Skip to content

Commit

Permalink
make cmake work on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
nathantsoi authored and fpistm committed Jul 11, 2023
1 parent baf3e2d commit 8ff274a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/FindArduinoCtags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion cmake/ensure_core_deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8ff274a

Please sign in to comment.