• Alexander Neundorf's avatar
    Add timeout to execute_process() in CMAKE_DETERMINE_COMPILER_ID(). · e6c9bc26
    Alexander Neundorf authored
    In CMAKE_DETERMINE_COMPILER_ID_VENDOR() the compiler is called with various
    arguments. In some cases, this can make the compiler hang and wait
    forever for input (e.g. "as -v"). That's why add an timeout
    so it terminates finally. 10 seconds should be more than enough,
    this is the time it takes to startup the compiler, which is
    usually quite fast.
CMakeDetermineCompilerId.cmake 13.4 KB