Skip to content

Commit

Permalink
Make OpenShotAudio loading conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Nov 8, 2020
1 parent b910d2f commit 39b4aa9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Expand Up @@ -160,7 +160,10 @@ target_include_directories(openshot

################# LIBOPENSHOT-AUDIO ###################
# Find JUCE-based openshot Audio libraries
find_package(OpenShotAudio 0.2.0 REQUIRED)
if(NOT TARGET OpenShot::Audio)
# Only load if necessary (not for integrated builds)
find_package(OpenShotAudio 0.2.0 REQUIRED)
endif()
target_link_libraries(openshot PUBLIC OpenShot::Audio)

###
Expand Down

0 comments on commit 39b4aa9

Please sign in to comment.