mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
adfb0623cb
Previously we crashed if at least one root variable was set to empty and at least one to non-empty. Fixes: #26538
11 lines
284 B
CMake
11 lines
284 B
CMake
set(vars CMAKE_SYSROOT CMAKE_SYSROOT_COMPILE CMAKE_SYSROOT_LINK CMAKE_FIND_ROOT_PATH)
|
|
foreach(v IN LISTS vars)
|
|
set("${v}" "")
|
|
endforeach()
|
|
foreach(v IN LISTS vars)
|
|
block()
|
|
set("${v}" "/dummy")
|
|
find_package(dummy CONFIG NO_DEFAULT_PATH PATHS "/")
|
|
endblock()
|
|
endforeach()
|