summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Ninja/CheckNoPrefixSubDirScript.cmake
blob: 09fd7e9b5f351d1949a9684fd1b6bc61b1abb7c2 (plain)
1
2
3
4
5
6
7
8
# Check that the prefix sub-directory is not repeated.

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."
    )
endif()