Skip to content

Commit

Permalink
[windows] Reenable on mingw when we have the right headers available
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jul 24, 2024
1 parent d3f5cce commit 9ac1746
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,24 @@ if(NOT TARGET score_lib_base)
include(ScoreExternalAddon)
endif()

if(WIN32 AND NOT MSVC)
# currently broken as clang doesn't like cppwinrt headers...
return()
endif()
project(score_addon_ble LANGUAGES CXX)
score_common_setup()

if(WIN32 AND NOT MSVC)
if(OSSIA_SDK)
# For cppwinrt headers that simpleble requires on windows.
if(EXISTS "${OSSIA_SDK}/sysroot/include/winrt")
include_directories("${OSSIA_SDK}/sysroot/include")
else()
find_path(WINRT_FOUNDATION_H_PATH winrt/Windows.Foundation.h)
if(NOT WINRT_FOUNDATION_H_PATH)
return()
endif()
include_directories("${WINRT_FOUNDATION_H_PATH}")
endif()
endif()
endif()

include(ble.cmake)
if(NOT TARGET simpleble)
return()
Expand Down

0 comments on commit 9ac1746

Please sign in to comment.