8a862a4d4b
Add a `CMAKE_NINJA_OUTPUT_PATH_PREFIX` variable. When it is set, CMake generates a `build.ninja` file suitable for embedding into another ninja project potentially generated by an alien generator.
9 lines
260 B
CMake
9 lines
260 B
CMake
# Check that the prefix sub-directory is not repeated.
|
|
|
|
if(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()
|