Skip to content

Commit

Permalink
[libremidi] Fix msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Nov 6, 2024
1 parent 23769b7 commit 393e20a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/deps/libremidi.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,15 @@ block()
endif()
set(WEAKJACK_FOLDER "${OSSIA_3RDPARTY_FOLDER}")
set(BUILD_SHARED_LIBS 0)
add_definitions(
BOOST_NO_RTTI=1
BOOST_MATH_DISABLE_FLOAT128=1
)

if(WIN32)
if(MSVC)
add_definitions(BOOST_ASIO_SEPARATE_COMPILATION=1)
endif()
endif()
add_subdirectory("${OSSIA_3RDPARTY_FOLDER}/libremidi" EXCLUDE_FROM_ALL)
endblock()

0 comments on commit 393e20a

Please sign in to comment.