diff --git a/CMakeLists.txt b/CMakeLists.txt index 98196b5..6ef5cb2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,25 +84,23 @@ else() if (${CMAKE_UNITY_BUILD}) add_library(sst-jucegui-juce-requirements STATIC) target_link_libraries(sst-jucegui-juce-requirements PRIVATE juce::juce_gui_basics) - get_target_property(incl juce::juce_gui_basics INTERFACE_INCLUDE_DIRECTORIES) - get_target_property(defn juce::juce_gui_basics INTERFACE_COMPILE_DEFINITIONS) + + target_compile_definitions(sst-jucegui-juce-requirements + INTERFACE + $) + + target_include_directories(sst-jucegui-juce-requirements + INTERFACE + $) target_include_directories(sst-jucegui-juce-requirements PUBLIC ${incl}) target_compile_definitions(sst-jucegui-juce-requirements PUBLIC ${defn} JUCE_GLOBAL_MODULE_SETTINGS_INCLUDED=1 - $,DEBUG=1,NDEBUG=1> - $,JUCE_DEBUG=1,JUCE_DEBUG=0> JUCE_USE_CURL=0 JUCE_WEB_BROWSER=0 - JUCE_JACK=0 - JUCE_ALSA=0 - JUCE_WASAPI=0 - JUCE_STANDALONE_APPLICATION=0 - JUCE_DIRECTSOUND=0 - ) set_target_properties(sst-jucegui-juce-requirements PROPERTIES UNITY_BUILD FALSE)