Skip to content

Commit

Permalink
[win32] we should not need /await aymore
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 27, 2024
1 parent 3773262 commit 17ce008
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
18 changes: 3 additions & 15 deletions cmake/libremidi.win32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,6 @@ if(NOT WIN32)
return()
endif()

if(${CMAKE_SYSTEM_NAME} MATCHES WindowsStore)
set(LIBREMIDI_NO_WINMM 1)
endif()

if(NOT LIBREMIDI_NO_WINMM)
include(libremidi.winmm)
endif()

if(NOT LIBREMIDI_NO_WINMIDI)
include(libremidi.winmidi)
endif()

if(NOT LIBREMIDI_NO_WINUWP)
include(libremidi.winuwp)
endif()
include(libremidi.winmm)
include(libremidi.winmidi)
include(libremidi.winuwp)
4 changes: 4 additions & 0 deletions cmake/libremidi.winmm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ if(LIBREMIDI_NO_WINMM)
return()
endif()

if(${CMAKE_SYSTEM_NAME} MATCHES WindowsStore)
return()
endif()

message(STATUS "libremidi: using WinMM")
set(LIBREMIDI_HAS_WINMM 1)
target_compile_definitions(libremidi
Expand Down
4 changes: 2 additions & 2 deletions cmake/libremidi.winuwp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if(LIBREMIDI_HAS_WINMIDI)
set(LIBREMIDI_HAS_WINUWP 1)
message(STATUS "libremidi: using WinUWP")

target_compile_options(libremidi ${_public} /EHsc /await:strict)
target_compile_options(libremidi ${_public} /EHsc)
target_compile_definitions(libremidi ${_public} LIBREMIDI_WINUWP)
return()
endif()
Expand Down Expand Up @@ -41,7 +41,7 @@ if(CPPWINRT_PATH)
target_compile_definitions(libremidi ${_public} LIBREMIDI_WINUWP)
target_link_libraries(libremidi INTERFACE RuntimeObject)
# We don't need /ZW option here (support for C++/CX)' as we use C++/WinRT
target_compile_options(libremidi ${_public} /EHsc /await:strict)
target_compile_options(libremidi ${_public} /EHsc)
else()
message(STATUS "libremidi: Failed to find Windows SDK, UWP MIDI backend will not be available")
return()
Expand Down

0 comments on commit 17ce008

Please sign in to comment.