mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
aa874dc609
When resolving binaryDir into a full path from a relative path, we forgot to check if binaryDir is altogether empty, causing empty binaryDir's to resolve to the source directory. Fix this. Fixes: #22434
5 lines
207 B
CMake
5 lines
207 B
CMake
include(${CMAKE_CURRENT_LIST_DIR}/TestVariable.cmake)
|
|
|
|
get_filename_component(_parent_dir "${CMAKE_SOURCE_DIR}" DIRECTORY)
|
|
test_variable(CMAKE_BINARY_DIR "" "${_parent_dir}/OptionalBinaryDirFieldNoS-build")
|