Skip to content

Commit 40083a8

Browse files
committed
[android] fix the android build
Macros can't yet be built as there's no host build support yet
1 parent aec5170 commit 40083a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
add_subdirectory(_FoundationCShims)
1616

17-
# Disable the macro build on Windows until we can correctly build it for the host architecture
18-
if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
17+
# Disable the macro build on Windows and Android until we can correctly build it for the host architecture
18+
if(NOT (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "Android"))
1919
add_subdirectory(FoundationMacros)
2020
endif()
2121

Sources/FoundationEssentials/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ add_subdirectory(String)
4848
add_subdirectory(TimeZone)
4949
add_subdirectory(URL)
5050

51-
if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
51+
if(NOT (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "Android"))
5252
# Depend on FoundationMacros
5353
add_dependencies(FoundationEssentials FoundationMacros)
5454
target_compile_options(FoundationEssentials PRIVATE -plugin-path ${CMAKE_BINARY_DIR}/lib)

0 commit comments

Comments
 (0)