Skip to content

Commit 9a44043

Browse files
authored
[CMake] Disable macros in Windows CMake build (#707)
1 parent a769223 commit 9a44043

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Sources/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
##===----------------------------------------------------------------------===##
1414

1515
add_subdirectory(_FoundationCShims)
16-
add_subdirectory(FoundationMacros)
16+
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)
19+
add_subdirectory(FoundationMacros)
20+
endif()
21+
1722
add_subdirectory(FoundationEssentials)
1823
add_subdirectory(FoundationInternationalization)

Sources/FoundationEssentials/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ add_subdirectory(String)
4848
add_subdirectory(TimeZone)
4949
add_subdirectory(URL)
5050

51-
# Depend on FoundationMacros
52-
add_dependencies(FoundationEssentials FoundationMacros)
53-
target_compile_options(FoundationEssentials PRIVATE -plugin-path ${CMAKE_BINARY_DIR}/lib)
51+
if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
52+
# Depend on FoundationMacros
53+
add_dependencies(FoundationEssentials FoundationMacros)
54+
target_compile_options(FoundationEssentials PRIVATE -plugin-path ${CMAKE_BINARY_DIR}/lib)
55+
endif()
5456

5557
if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Android)
5658
target_compile_options(FoundationEssentials PRIVATE

0 commit comments

Comments
 (0)