diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f431f71eb..4a4980b17d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,8 +135,7 @@ option(JUCE_WEBVIEW2_PACKAGE_LOCATION ${webview2_option_message} "") include(CMakePackageConfigHelpers) write_basic_package_version_file("${JUCE_BINARY_DIR}/JUCEConfigVersion.cmake" VERSION ${JUCE_VERSION} - COMPATIBILITY ExactVersion - ${extra_version_arg}) + COMPATIBILITY ExactVersion) set(JUCE_INSTALL_DESTINATION "lib/cmake/JUCE-${JUCE_VERSION}" CACHE STRING "The location, relative to the install prefix, where the JUCE config file will be installed") diff --git a/extras/Build/CMake/JUCEModuleSupport.cmake b/extras/Build/CMake/JUCEModuleSupport.cmake index ea6727cb0c..cac20db129 100644 --- a/extras/Build/CMake/JUCEModuleSupport.cmake +++ b/extras/Build/CMake/JUCEModuleSupport.cmake @@ -159,7 +159,9 @@ endfunction() function(_juce_get_metadata target key out_var) get_target_property(content "${target}" "INTERFACE_JUCE_${key}") - if(NOT "${content}" STREQUAL "content-NOTFOUND") + if("${content}" STREQUAL "content-NOTFOUND") + set(${out_var} PARENT_SCOPE) + else() set(${out_var} "${content}" PARENT_SCOPE) endif() endfunction() @@ -450,6 +452,8 @@ function(juce_add_module module_path) _juce_module_sources("${module_path}" "${base_path}" globbed_sources headers) + set(all_module_sources) + if(${module_name} STREQUAL "juce_audio_plugin_client") list(REMOVE_ITEM headers "${module_path}/LV2/juce_LV2ManifestHelper.cpp" diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake index b5390c3dcb..c8017de5ff 100644 --- a/extras/Build/CMake/JUCEUtils.cmake +++ b/extras/Build/CMake/JUCEUtils.cmake @@ -316,7 +316,14 @@ endfunction() function(_juce_append_record output key) string(ASCII 30 RS) string(ASCII 31 US) - set(${output} "${${output}}${key}${US}${ARGN}${RS}" PARENT_SCOPE) + + set(prev) + + if(DEFINED "${output}") + set(prev "${${output}}") + endif() + + set(${output} "${prev}${key}${US}${ARGN}${RS}" PARENT_SCOPE) endfunction() function(_juce_append_target_property output key target property) diff --git a/extras/Build/juceaide/CMakeLists.txt b/extras/Build/juceaide/CMakeLists.txt index a75fa1f01c..651aa53c80 100644 --- a/extras/Build/juceaide/CMakeLists.txt +++ b/extras/Build/juceaide/CMakeLists.txt @@ -120,7 +120,6 @@ else() "-DCMAKE_BUILD_TYPE=Debug" "-DJUCE_BUILD_HELPER_TOOLS=ON" "-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}" - ${extra_compiler_flag_arguments} WORKING_DIRECTORY "${JUCE_SOURCE_DIR}" OUTPUT_VARIABLE command_output ERROR_VARIABLE command_output