/
githubmirror
/
ceph
Обзор
Документация
Войти
/
githubmirror
/
ceph
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v21.0.0
cmake/modules/FindMake.cmake
16 строк
655 B
Kefu Chai
cmake: use find_program(REQUIRED) to fail early on missing programs
17 июн 2025, 12:30
17 июн 2025, 12:30
448633e
Код
Авторство
О чём код?
function(find_make make_exe make_cmd) # make_exe the name of the variable whose value will be the path to "make" # executable # make_cmd the name of the variable whose value will be the command to # used in the generated build script executed by the cmake generator find_program(MAKE_EXECUTABLE NAMES gmake make REQUIRED) set(${make_exe} "${MAKE_EXECUTABLE}" PARENT_SCOPE) if(CMAKE_MAKE_PROGRAM MATCHES "make") # try to inherit command line arguments passed by parent "make" job set(${make_cmd} "$(MAKE)" PARENT_SCOPE) else() set(${make_cmd} "${MAKE_EXECUTABLE}" PARENT_SCOPE) endif() endfunction()