From 5809d8bb78fc514d7fbbfcd31c28a6d38614a583 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Thu, 4 Jul 2024 21:51:26 +0700 Subject: [PATCH] feat: modify `section` function to print once --- cmake/Assertion.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/Assertion.cmake b/cmake/Assertion.cmake index fc1548d..9a957ff 100644 --- a/cmake/Assertion.cmake +++ b/cmake/Assertion.cmake @@ -303,7 +303,7 @@ function(section NAME) cmake_parse_arguments(PARSE_ARGV 1 ARG "" "" "") string(JOIN "" NAME "${NAME}" ${ARG_UNPARSED_ARGUMENTS}) - message(CHECK_START "${NAME}") + message(STATUS "${NAME}") list(APPEND CMAKE_MESSAGE_INDENT " ") set(CMAKE_MESSAGE_INDENT "${CMAKE_MESSAGE_INDENT}" PARENT_SCOPE) endfunction() @@ -316,7 +316,6 @@ endfunction() function(endsection) list(POP_BACK CMAKE_MESSAGE_INDENT) set(CMAKE_MESSAGE_INDENT "${CMAKE_MESSAGE_INDENT}" PARENT_SCOPE) - message(CHECK_PASS passed) endfunction() # These lines allow this module to include other modules when run in script mode