mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
Tests/RunCMake/Ninja: fix subdir prefix check
If the output path prefix is empty, the directory is going to exist.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Check that the prefix sub-directory is not repeated.
|
||||
|
||||
if(EXISTS "${CUR_BIN_DIR}/${NINJA_OUTPUT_PATH_PREFIX}")
|
||||
if(NINJA_OUTPUT_PATH_PREFIX AND EXISTS "${CUR_BIN_DIR}/${NINJA_OUTPUT_PATH_PREFIX}")
|
||||
message(FATAL_ERROR
|
||||
"no sub directory named after the CMAKE_NINJA_OUTPUT_PATH_PREFIX "
|
||||
"should be in the binary directory."
|
||||
|
||||
Reference in New Issue
Block a user