diff --git a/Sources/CMakeLists.txt b/Sources/CMakeLists.txt index 476f750b5..f7f7ba156 100644 --- a/Sources/CMakeLists.txt +++ b/Sources/CMakeLists.txt @@ -13,6 +13,11 @@ ##===----------------------------------------------------------------------===## add_subdirectory(_FoundationCShims) -add_subdirectory(FoundationMacros) + +# Disable the macro build on Windows until we can correctly build it for the host architecture +if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows) + add_subdirectory(FoundationMacros) +endif() + add_subdirectory(FoundationEssentials) add_subdirectory(FoundationInternationalization) diff --git a/Sources/FoundationEssentials/CMakeLists.txt b/Sources/FoundationEssentials/CMakeLists.txt index 468db7328..df86c256d 100644 --- a/Sources/FoundationEssentials/CMakeLists.txt +++ b/Sources/FoundationEssentials/CMakeLists.txt @@ -48,9 +48,11 @@ add_subdirectory(String) add_subdirectory(TimeZone) add_subdirectory(URL) -# Depend on FoundationMacros -add_dependencies(FoundationEssentials FoundationMacros) -target_compile_options(FoundationEssentials PRIVATE -plugin-path ${CMAKE_BINARY_DIR}/lib) +if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows) + # Depend on FoundationMacros + add_dependencies(FoundationEssentials FoundationMacros) + target_compile_options(FoundationEssentials PRIVATE -plugin-path ${CMAKE_BINARY_DIR}/lib) +endif() if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Android) target_compile_options(FoundationEssentials PRIVATE