mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
b7d7eca66d
If a path argument with no -S or -B leads to a cache directory, use that directory as the binary directory. Otherwise, use the binary directory from the preset. Fixes: #21311
5 lines
190 B
CMake
5 lines
190 B
CMake
include(${CMAKE_CURRENT_LIST_DIR}/TestVariable.cmake)
|
|
|
|
get_filename_component(_parent "${CMAKE_SOURCE_DIR}" DIRECTORY)
|
|
test_variable(CMAKE_BINARY_DIR "" "${_parent}/GoodNoSCachePrep-build")
|