Lines 1792-1798
Link Here
|
1792 |
} |
1792 |
} |
1793 |
|
1793 |
|
1794 |
# |
1794 |
# |
1795 |
# while file: check that CMAKE_BOOL just has words |
1795 |
# whole file: check that CMAKE_BOOL just has words |
1796 |
# |
1796 |
# |
1797 |
print "OK: checking that *_CMAKE_BOOL only contains words.\n" if ($verbose); |
1797 |
print "OK: checking that *_CMAKE_BOOL only contains words.\n" if ($verbose); |
1798 |
if ($whole =~ /\n([\w\d]+)_CMAKE_BOOL[?+:]?=([^\n]+)\n/) { |
1798 |
if ($whole =~ /\n([\w\d]+)_CMAKE_BOOL[?+:]?=([^\n]+)\n/) { |
Lines 1804-1809
Link Here
|
1804 |
} |
1804 |
} |
1805 |
} |
1805 |
} |
1806 |
|
1806 |
|
|
|
1807 |
print "OK: checking that *CMAKE* co-occurs with *USES+=cmake.\n" if ($verbose); |
1808 |
while ($whole =~ /\n([\w\d]+_)?CMAKE_(ARGS|BOOL|BOOL_ON|BOOL_OFF|OFF|ON)\b/g) { |
1809 |
my $lineno = &linenumber($`); |
1810 |
my $o = $1; |
1811 |
my $found_cmake = 0; |
1812 |
# Check in global USES and per-option USES |
1813 |
if ($makevar{USES} =~ /\b(cmake\b|cmake:)/) { |
1814 |
$found_cmake = 1; |
1815 |
} |
1816 |
elsif ($o) { |
1817 |
my $option_uses = "${o}USES"; |
1818 |
if ($makevar{$option_uses} && $makevar{$option_uses} =~ /\b(cmake\b|cmake:)/) { |
1819 |
$found_cmake = 1; |
1820 |
} |
1821 |
} |
1822 |
unless ($found_cmake) { |
1823 |
$o = "" unless ($o); |
1824 |
&perror("FATAL", $file, $lineno, "${o}CMAKE_$2 is set without USES+=cmake"); |
1825 |
} |
1826 |
} |
1827 |
|
1807 |
# |
1828 |
# |
1808 |
# whole file: NO_CHECKSUM |
1829 |
# whole file: NO_CHECKSUM |
1809 |
# |
1830 |
# |