diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake index fb20cddb1c..80cb05ad17 100644 --- a/extras/Build/CMake/JUCEUtils.cmake +++ b/extras/Build/CMake/JUCEUtils.cmake @@ -1595,7 +1595,7 @@ function(_juce_set_generic_property_if_not_set target property) set(existing_property) get_target_property(existing_property ${target} ${property}) - if(${existing_property} STREQUAL "existing_property-NOTFOUND") + if(existing_property STREQUAL "existing_property-NOTFOUND") set_target_properties(${target} PROPERTIES ${property} "${ARGN}") endif() endfunction()