Revision aef3f1be5b1823ac21442753f5817a63eeba54e1 authored by Steven Johnson on 15 September 2020, 18:03:50 UTC, committed by GitHub on 15 September 2020, 18:03:50 UTC
Refactor the autoschedulers to their own directory.
2 parent s 8d19b1f + 2ed3e14
Raw File
CheckFilesExist.cmake
function(check_files_exist FAILED)
    set(${FAILED} FALSE PARENT_SCOPE)
    foreach (F IN LISTS ARGN)
        if (NOT EXISTS ${F})
            message(STATUS "File not found: ${F}")
            set(${FAILED} TRUE PARENT_SCOPE)
        endif ()
    endforeach ()
endfunction()

if (CMAKE_SCRIPT_MODE_FILE)
    check_files_exist(FAILED ${FILES_TO_CHECK})
    if (FAILED)
        message(FATAL_ERROR "One or more files weren't found")
    endif ()
endif ()
back to top