From 30ee23628385772a6c2a1e40fe52df045b85fe67 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Tue, 24 Sep 2024 15:25:34 -0500 Subject: [PATCH] Update cmake/cmake_test/add_dir.cmake Co-authored-by: Zachery Crandall --- cmake/cmake_test/add_dir.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/cmake_test/add_dir.cmake b/cmake/cmake_test/add_dir.cmake index d7ec41b..064c391 100644 --- a/cmake/cmake_test/add_dir.cmake +++ b/cmake/cmake_test/add_dir.cmake @@ -176,10 +176,10 @@ function(ct_add_dir _ad_test_dir) -B "${_ad_test_dest_full_path}" ${ADD_DIR_CMAKE_OPTIONS} ) - if(ADD_DIR_LABEL AND NOT ADD_DIR_LABEL_NAME) - set_property(TEST ${_ad_test_name} PROPERTY LABELS ${_ad_test_dir}) - elseif(ADD_DIR_LABEL_NAME) - set_property(TEST ${_ad_test_name} PROPERTY LABELS "${ADD_DIR_LABEL_NAME}") + if(ADD_DIR_LABEL_NAME) + set_property(TEST "${_ad_test_name}" PROPERTY LABELS "${ADD_DIR_LABEL_NAME}") + elseif(ADD_DIR_LABEL) + set_property(TEST "${_ad_test_name}" PROPERTY LABELS "${_ad_test_dir}") endif() endforeach() endfunction()