mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
Meta: Print error if cmake does not exist
This commit is contained in:
parent
b9dca3300e
commit
1c979889b2
Notes:
sideshowbarker
2024-07-17 05:40:46 +09:00
Author: https://github.com/demostanis Commit: https://github.com/SerenityOS/serenity/commit/1c979889b2 Pull-request: https://github.com/SerenityOS/serenity/pull/15104 Reviewed-by: https://github.com/timschumi
2 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
include(ProcessorCount)
|
||||
ProcessorCount(N)
|
||||
message("${N}")
|
||||
# Executing echo here allows us to print to the standard output,
|
||||
# to separate the processor count from potential errors
|
||||
execute_process(COMMAND "${CMAKE_COMMAND}" -E echo "${N}")
|
||||
|
|
|
@ -262,7 +262,7 @@ build_target() {
|
|||
fi
|
||||
|
||||
# Get either the environment MAKEJOBS or all processors via CMake
|
||||
[ -z "$MAKEJOBS" ] && MAKEJOBS=$(cmake -P "$SERENITY_SOURCE_DIR/Meta/CMake/processor-count.cmake" 2>&1)
|
||||
[ -z "$MAKEJOBS" ] && MAKEJOBS=$(cmake -P "$SERENITY_SOURCE_DIR/Meta/CMake/processor-count.cmake")
|
||||
|
||||
# With zero args, we are doing a standard "build"
|
||||
# With multiple args, we are doing an install/image/run
|
||||
|
|
Loading…
Reference in a new issue