Skip to content

Commit

Permalink
Comment out attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Sep 27, 2024
1 parent b077295 commit 959d631
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 1 addition & 3 deletions Generator/InteropTests/WinRTComponent/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,4 @@ ExternalProject_Add(WinRTComponent
TEST_COMMAND "")

# Define the projection build
add_subdirectory(
"${PROJECTION_DIR}"
"${CMAKE_CURRENT_BINARY_DIR}/Projection/Build")
add_subdirectory("${PROJECTION_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/Projection/Build")
12 changes: 6 additions & 6 deletions Generator/Sources/SwiftWinRT/writeProjectionFiles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ fileprivate func writeSwiftModuleFiles(_ module: Module, directoryPath: String,
"PROPERTIES", "Swift_MODULE_NAME", .autoquote(module.name))
// Workaround CMake error with mismatching module names:
// "CMake can not determine linker language for target: <blah>"
writer.writeSingleLineCommand(
"set_target_properties", .autoquote(targetName),
"PROPERTIES", "LINKER_LANGUAGE", "Swift")
// writer.writeSingleLineCommand(
// "set_target_properties", .autoquote(targetName),
// "PROPERTIES", "LINKER_LANGUAGE", "Swift")
}
writer.writeTargetLinkLibraries(targetName, .public,
[ cmakeOptions.getTargetName(moduleName: module.abiModuleName), SupportModules.WinRT.moduleName ]
Expand Down Expand Up @@ -145,9 +145,9 @@ fileprivate func writeNamespaceModuleFiles(_ module: Module, directoryPath: Stri
"PROPERTIES", "Swift_MODULE_NAME", .autoquote(namespaceModuleName))
// Workaround CMake error with mismatching module names:
// "CMake can not determine linker language for target: <blah>"
writer.writeSingleLineCommand(
"set_target_properties", .autoquote(targetName),
"PROPERTIES", "LINKER_LANGUAGE", "Swift")
// writer.writeSingleLineCommand(
// "set_target_properties", .autoquote(targetName),
// "PROPERTIES", "LINKER_LANGUAGE", "Swift")
}
writer.writeTargetLinkLibraries(targetName, .public, [ cmakeOptions.getTargetName(moduleName: module.name) ])
}
Expand Down
3 changes: 2 additions & 1 deletion Support/Sources/WindowsRuntime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ target_link_libraries(WindowsRuntime PUBLIC COM WindowsRuntime_ABI)
target_link_libraries(WindowsRuntime PRIVATE SWRT_InternalABI)

# Workaround for CMake not propagating include dirs
target_include_directories(WindowsRuntime INTERFACE "$<TARGET_FILE_DIR:ABIBindings>")
# target_include_directories(WindowsRuntime INTERFACE "$<TARGET_FILE_DIR:ABIBindings>")
# target_include_directories(WindowsRuntime INTERFACE "$<TARGET_PROPERTY:SWRT_InternalABI,INCLUDE_DIRECTORIES>")

0 comments on commit 959d631

Please sign in to comment.