Skip to content

Commit df4327d

Browse files
Set Status in CMake Commands
1 parent c500930 commit df4327d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

command/cmake.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ sub Run ($)
5252

5353
my $command_name = $self->{simple} ? "cmake_cmd" : "cmake";
5454

55+
main::PrintStatus (
56+
($self->{simple} && $options !~ /\W--build\W/) ? 'Configure' : 'Compile',
57+
$command_name);
58+
5559
# Get cmake_var_* Autobuild Variables
5660
my @cmake_vars = ();
5761
my $autobuild_var_cmake_var_re = qr/^cmake_var_(\w+)$/;

command/print_cmake_version.pm

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ sub Run ($)
4646
my $cmake_command = main::GetVariable ('cmake_command');
4747
$cmake_command = "\"$cmake_command\" --version";
4848

49-
main::PrintStatus ('Config', "print CMake Version");
50-
51-
print "<h3>CMake version ($cmake_command)</h3>\n";
49+
main::PrintStatus ('Config', "CMake Version ($cmake_command)");
5250

5351
return utility::run_command ($cmake_command);
5452
}

tests/autobuild/cmake/test.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
<command name="log" options="on"/>
1313
<command name="print_cmake_version"/>
14-
<command name="log" options="off"/>
1514

1615
<!-- All Defaults -->
1716
<command name="cmake"/>
@@ -38,4 +37,5 @@
3837
</command>
3938

4039
<command name="cmake_cmd" options="--cmake-cmd"/>
40+
<command name="log" options="off"/>
4141
</autobuild>

0 commit comments

Comments
 (0)