This repository was archived by the owner on Jul 30, 2019. It is now read-only.
File tree 2 files changed +723
-8
lines changed
2 files changed +723
-8
lines changed Original file line number Diff line number Diff line change 4
4
use warnings;
5
5
use POSIX qw( strftime) ;
6
6
7
- # my $cmake = "/home/pboettch/devel/upstream/cmake/build/bin/cmake";
8
- my $cmake = " cmake" ;
7
+ my $cmake = " /home/pboettch/devel/upstream/cmake/build/bin/cmake" ;
8
+ # my $cmake = "cmake";
9
9
10
10
my @variables ;
11
11
my @commands ;
12
12
my @properties ;
13
13
my @modules ;
14
14
my %keywords ; # command => keyword-list
15
15
16
+ # find cmake/Modules/ | sed -rn 's/.*CMakeDetermine(.+)Compiler.cmake/\1/p' | sort
17
+ my @languages = qw( ASM ASM_MASM ASM_NASM C CSharp CUDA CXX Fortran Java RC Swift) ;
18
+
16
19
# unwanted upper-cases
17
20
my %unwanted = map { $_ => 1 } qw( VS CXX IDE NOTFOUND NO_ DFOO DBAR NEW) ;
18
21
# cannot remove ALL - exists for add_custom_command
30
33
# variables
31
34
open (CMAKE, " $cmake --help-variable-list|" ) or die " could not run cmake" ;
32
35
while (<CMAKE>) {
33
- next if / \< / ; # skip if containing < or >
34
36
chomp ;
37
+
38
+ if (/ <(.*?)>/ ) {
39
+ if ($1 eq ' LANG' ) {
40
+ foreach my $lang (@languages ) {
41
+ (my $V = $_ ) =~ s / <.*>/ $lang / ;
42
+ push @variables , $V ;
43
+ }
44
+
45
+ next
46
+ } else {
47
+ next ; # skip if containing < or >
48
+ }
49
+ }
50
+
35
51
push @variables , $_ ;
36
52
}
37
53
close (CMAKE);
You can’t perform that action at this time.
0 commit comments