Skip to content

Commit

Permalink
feat: modify section function to print once
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Jul 4, 2024
1 parent 23ea536 commit 5809d8b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmake/Assertion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit 5809d8b

Please sign in to comment.