summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-01 15:16:18 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-07-01 15:16:32 (GMT)
commitf41b2b25a6951212e7745383ca808cb3ff701fd7 (patch)
treed1774e3b385c4340fb63dbbe89485fd5d03b2759 /Modules
parent2ecdf00f07c0fc57ad9dbe41956249eb4aa3e40c (diff)
parent669b6a37f5ce5b0b6a2623b4acb5442784d93b43 (diff)
downloadCMake-f41b2b25a6951212e7745383ca808cb3ff701fd7.zip
CMake-f41b2b25a6951212e7745383ca808cb3ff701fd7.tar.gz
CMake-f41b2b25a6951212e7745383ca808cb3ff701fd7.tar.bz2
Merge topic 'findicu'
669b6a37f5 FindICU: Fix component reporting logic Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7430
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindICU.cmake12
1 files changed, 5 insertions, 7 deletions
diff --git a/Modules/FindICU.cmake b/Modules/FindICU.cmake
index 91dcba5..b4f4d71 100644
--- a/Modules/FindICU.cmake
+++ b/Modules/FindICU.cmake
@@ -254,13 +254,6 @@ function(_ICU_FIND)
set("${component_found}" ON)
set("${component_found_compat}" ON)
list(APPEND ICU_LIBRARY "${${component_cache}}")
- endif()
- mark_as_advanced("${component_found}")
- mark_as_advanced("${component_found_compat}")
- set("${component_cache}" "${${component_cache}}" PARENT_SCOPE)
- set("${component_found}" "${${component_found}}" PARENT_SCOPE)
- set("${component_found_compat}" "${${component_found_compat}}" PARENT_SCOPE)
- if(component_found OR component_found_compat)
if (ICU_FIND_REQUIRED_${component})
list(APPEND ICU_LIBS_FOUND "${component} (required): ${${component_cache}}")
else()
@@ -274,6 +267,11 @@ function(_ICU_FIND)
list(APPEND ICU_LIBS_NOTFOUND "${component} (optional)")
endif()
endif()
+ mark_as_advanced("${component_found}")
+ mark_as_advanced("${component_found_compat}")
+ set("${component_cache}" "${${component_cache}}" PARENT_SCOPE)
+ set("${component_found}" "${${component_found}}" PARENT_SCOPE)
+ set("${component_found_compat}" "${${component_found_compat}}" PARENT_SCOPE)
endforeach()
set(_ICU_REQUIRED_LIBS_FOUND "${ICU_REQUIRED_LIBS_FOUND}" PARENT_SCOPE)
set(ICU_LIBRARY "${ICU_LIBRARY}" PARENT_SCOPE)