mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
FindICU: Find 64-bit Windows builds under CMP0074 NEW behavior
CMP0074 causes FindICU.cmake to always prefer the 32-bit version of ICU programs/libraries on Windows. NO_PACKAGE_ROOT_PATH reverts this behavior. Fixes: #18742
This commit is contained in:
committed by
Brad King
parent
378473f9f1
commit
26b7a8e77e
@@ -165,7 +165,9 @@ function(_ICU_FIND)
|
|||||||
find_program("${cache_var}" "${program}"
|
find_program("${cache_var}" "${program}"
|
||||||
HINTS ${icu_roots}
|
HINTS ${icu_roots}
|
||||||
PATH_SUFFIXES ${icu_binary_suffixes}
|
PATH_SUFFIXES ${icu_binary_suffixes}
|
||||||
DOC "ICU ${program} executable")
|
DOC "ICU ${program} executable"
|
||||||
|
NO_PACKAGE_ROOT_PATH
|
||||||
|
)
|
||||||
mark_as_advanced(cache_var)
|
mark_as_advanced(cache_var)
|
||||||
set("${program_var}" "${${cache_var}}" PARENT_SCOPE)
|
set("${program_var}" "${${cache_var}}" PARENT_SCOPE)
|
||||||
endforeach()
|
endforeach()
|
||||||
@@ -229,11 +231,15 @@ function(_ICU_FIND)
|
|||||||
find_library("${component_cache_release}" ${component_libnames}
|
find_library("${component_cache_release}" ${component_libnames}
|
||||||
HINTS ${icu_roots}
|
HINTS ${icu_roots}
|
||||||
PATH_SUFFIXES ${icu_library_suffixes}
|
PATH_SUFFIXES ${icu_library_suffixes}
|
||||||
DOC "ICU ${component} library (release)")
|
DOC "ICU ${component} library (release)"
|
||||||
|
NO_PACKAGE_ROOT_PATH
|
||||||
|
)
|
||||||
find_library("${component_cache_debug}" ${component_debug_libnames}
|
find_library("${component_cache_debug}" ${component_debug_libnames}
|
||||||
HINTS ${icu_roots}
|
HINTS ${icu_roots}
|
||||||
PATH_SUFFIXES ${icu_library_suffixes}
|
PATH_SUFFIXES ${icu_library_suffixes}
|
||||||
DOC "ICU ${component} library (debug)")
|
DOC "ICU ${component} library (debug)"
|
||||||
|
NO_PACKAGE_ROOT_PATH
|
||||||
|
)
|
||||||
include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
|
include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
|
||||||
select_library_configurations(ICU_${component_upcase})
|
select_library_configurations(ICU_${component_upcase})
|
||||||
mark_as_advanced("${component_cache_release}" "${component_cache_debug}")
|
mark_as_advanced("${component_cache_release}" "${component_cache_debug}")
|
||||||
|
|||||||
Reference in New Issue
Block a user