commit 8d036e9e4510fbcde4755dd874479b042884b6e1 parent ecc2182e0c404c45fadfab468d9cefd5fdfd9b99 Author: jatinchowdhury18 <jatinchowdhury18@gmail.com> Date: Thu, 16 Jun 2022 23:52:45 +0100 Only compile with OpenGL by default on Windows Diffstat:
M | Plugin/modules/CMakeLists.txt | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/Plugin/modules/CMakeLists.txt b/Plugin/modules/CMakeLists.txt @@ -80,7 +80,14 @@ if(IOS) target_compile_definitions(juce_plugin_modules PUBLIC JUCE_IN_APP_PURCHASES=1) endif() -if(NOT APPLE) +# Enable OpenGL on Windows by default. +if (WIN32) + option(CHOWDSP_ENABLE_OPENGL "Enable OpenGL for this plugin" ON) +else() + option(CHOWDSP_ENABLE_OPENGL "Enable OpenGL for this plugin" OFF) +endif() + +if(CHOWDSP_ENABLE_OPENGL) message(STATUS "Linking with OpenGL") target_link_libraries(juce_plugin_modules PRIVATE juce::juce_opengl) endif()