From 3328480f7806f50ba2484c1e096794848b6078f1 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sun, 2 Aug 2020 13:57:51 +0200 Subject: [PATCH] CMake: use set_target_properties() instead of set_property(TARGET ) --- build/cmake/functions.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/cmake/functions.cmake b/build/cmake/functions.cmake index c33dd3946c..06729d147c 100644 --- a/build/cmake/functions.cmake +++ b/build/cmake/functions.cmake @@ -340,7 +340,7 @@ macro(wx_add_library name) add_library(${name} ${wxBUILD_LIB_TYPE} ${src_files}) add_library(wx::${name_short} ALIAS ${name}) wx_set_target_properties(${name} ${wxADD_LIBRARY_IS_BASE}) - set_property(TARGET ${name} PROPERTY PROJECT_LABEL ${name_short}) + set_target_properties(${name} PROPERTIES PROJECT_LABEL ${name_short}) # Setup install wx_install(TARGETS ${name} @@ -517,7 +517,7 @@ function(wx_add_builtin_library name) add_library(${name} STATIC ${src_list}) add_library(wx::${name_short} ALIAS ${name}) wx_set_builtin_target_properties(${name}) - set_property(TARGET ${name} PROPERTY PROJECT_LABEL ${name_short}) + set_target_properties(${name} PROPERTIES PROJECT_LABEL ${name_short}) if(wxBUILD_SHARED) set_target_properties(${name} PROPERTIES POSITION_INDEPENDENT_CODE TRUE) endif()