Skip to content

Commit

Permalink
Fixed displaying ASIO image on non-windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg68 authored and rousseldenis committed Nov 11, 2021
1 parent 4b4cc79 commit 2acf98a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ else ()
endif ()
option(GO_SEPARATE_LINUX_PACKAGES "Generate separate linux packages for resources and demo" OFF)

# Add ASIO variable
if(RTAUDIO_USE_ASIO)
add_definitions(-DASIO_INCLUDED)
endif()

# only use options supported by the compiler
include(CheckIncludeFileCXX)
include(CheckFunctionExists)
Expand Down Expand Up @@ -136,6 +131,11 @@ if (RTAUDIO_USE_JACK OR RTMIDI_USE_JACK OR GO_USE_JACK)
pkg_check_modules(JACK REQUIRED IMPORTED_TARGET jack)
endif()

# Add ASIO variable
if(WIN32 AND RTAUDIO_USE_ASIO)
add_definitions(-DASIO_INCLUDED)
endif()

if(RTAUDIO_USE_ASIO AND NOT ASIO_SDK_DIR)
set(ASIO_SDK_DIR "${CMAKE_SOURCE_DIR}/ext/rt/asio")
endif()
Expand Down

0 comments on commit 2acf98a

Please sign in to comment.