Skip to content

Commit

Permalink
Fix build?
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Sep 17, 2024
1 parent fabfc8f commit 702bf9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions InteropTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ execute_process(

# Build the Swift projection
add_subdirectory(../Support ${CMAKE_CURRENT_BINARY_DIR}/Support)
add_subdirectory(
${CMAKE_CURRENT_BINARY_DIR}/Generated/Sources
${CMAKE_CURRENT_BINARY_DIR}/Generated/Build)

# TODO(https://github.com/tristanlabelle/swift-winrt/issues/302): Fix linking issues
# add_subdirectory(
# ${CMAKE_CURRENT_BINARY_DIR}/Generated/Sources
# ${CMAKE_CURRENT_BINARY_DIR}/Generated/Build)
5 changes: 4 additions & 1 deletion InteropTests/GenerateProjection.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ $WindowsSDKVersion = $env:WindowsSDKVersion -replace "\\",""
--out-manifest "$OutputDir\WinRTComponent.manifest" | Write-Host
if ($LASTEXITCODE -ne 0) { throw "Failed to generate Swift projection for WinRT component" }

Write-Output $OutputDir
if ($MyInvocation.PSCommandPath) {
# Return the path to PowerShell
Write-Output $OutputDir
}

0 comments on commit 702bf9c

Please sign in to comment.