mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Make ninja smart console builds more pretty
Summary: CMake's `find_package` outputs to the console on success, which confuses the smart console mode of the `ninja` build system. Let's quiet the success message and manually warn instead. Reviewers: tstellar, phosek, mehdi_amini Reviewed By: mehdi_amini Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82276
This commit is contained in:
parent
0ebad7ad63
commit
c18ae8a43a
@ -4,7 +4,7 @@
|
|||||||
# extra argument, otherwise uses CMAKE_CURRENT_SOURCE_DIR).
|
# extra argument, otherwise uses CMAKE_CURRENT_SOURCE_DIR).
|
||||||
|
|
||||||
function(get_source_info path revision repository)
|
function(get_source_info path revision repository)
|
||||||
find_package(Git)
|
find_package(Git QUIET)
|
||||||
if(GIT_FOUND)
|
if(GIT_FOUND)
|
||||||
execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --git-dir
|
execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse --git-dir
|
||||||
WORKING_DIRECTORY ${path}
|
WORKING_DIRECTORY ${path}
|
||||||
@ -45,5 +45,7 @@ function(get_source_info path revision repository)
|
|||||||
set(${repository} ${path} PARENT_SCOPE)
|
set(${repository} ${path} PARENT_SCOPE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
else()
|
||||||
|
message(WARNING "Git not found. Version cannot be determined.")
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
Loading…
Reference in New Issue
Block a user