summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-12-09 18:11:26 +0100
committerMichael Palimaka <kensington@gentoo.org>2015-12-11 04:58:35 +1100
commitda18ffdf220a932d2466bb94d114e8767a00f151 (patch)
treee0caba16a999d481adcd25adf2493b96b6e1530a /eclass/cmake-utils.eclass
parentsys-fs/ctmg: import application (diff)
downloadgentoo-da18ffdf220a932d2466bb94d114e8767a00f151.tar.gz
gentoo-da18ffdf220a932d2466bb94d114e8767a00f151.tar.bz2
gentoo-da18ffdf220a932d2466bb94d114e8767a00f151.zip
cmake-utils.eclass: Case insensitive comment_add_subdirectory
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index ea88e4833316..fa0ddca92cf5 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -257,7 +257,7 @@ comment_add_subdirectory() {
fi
if [[ -e "CMakeLists.txt" ]]; then
- sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1//\//\\/}[[:space:]]*)/s/^/#DONOTCOMPILE /" \
+ sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1//\//\\/}[[:space:]]*)/I s/^/#DONOTCOMPILE /" \
-i CMakeLists.txt || die "failed to comment add_subdirectory(${1})"
fi
}