mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-12 10:10:08 -06:00
Compilation is complicated. Caching / distribution is even more complicated. Sometimes there are bugs (in compilers as well as in FASTBuild), so export the option to disable those features for CMake targets.
12 lines
409 B
CMake
12 lines
409 B
CMake
set(fbuild_bff "${RunCMake_TEST_BINARY_DIR}/fbuild.bff")
|
|
|
|
if(NOT EXISTS "${fbuild_bff}")
|
|
set(RunCMake_TEST_FAILED "Generator output file is missing:\n ${fbuild_bff}")
|
|
return()
|
|
endif()
|
|
file(READ "${fbuild_bff}" fbuild_bff)
|
|
|
|
if(NOT fbuild_bff MATCHES ${REGEX_TO_MATCH})
|
|
set(RunCMake_TEST_FAILED "Regex '${REGEX_TO_MATCH}' not found in the generated file ${RunCMake_TEST_BINARY_DIR}/fbuild.bff")
|
|
endif()
|