https://github.com/Kitware/CMake
Revision c42b377c298af131ca4dbc120538aec1a56ff4be authored by Kyle Edwards on 10 January 2018, 15:43:42 UTC, committed by Kyle Edwards on 15 January 2018, 14:28:32 UTC
1 parent a9c4830
Tip revision: c42b377c298af131ca4dbc120538aec1a56ff4be authored by Kyle Edwards on 10 January 2018, 15:43:42 UTC
cmCacheManager: Test and document newline truncation behavior
cmCacheManager: Test and document newline truncation behavior
Tip revision: c42b377
ninja-check.cmake
file(READ build.ninja build_ninja)
if("${build_ninja}" MATCHES [====[
# Unknown Build Time Dependencies.
# Tell Ninja that they may appear as side effects of build rules
# otherwise ordered by order-only dependencies.
((build [^:]*: phony[^\n]*
)*)# ========]====])
set(phony "${CMAKE_MATCH_1}")
if(NOT phony)
message(STATUS "build.ninja correctly does not have extra phony rules")
else()
string(REGEX REPLACE "\n+$" "" phony "${phony}")
string(REGEX REPLACE "\n" "\n " phony " ${phony}")
message(FATAL_ERROR "build.ninja incorrectly has extra phony rules:\n"
"${phony}")
endif()
else()
message(FATAL_ERROR "build.ninja is incorrectly missing expected block")
endif()
Computing file changes ...