commit: da18ffdf220a932d2466bb94d114e8767a00f151
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Wed Dec 9 17:11:26 2015 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Dec 10 17:58:35 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da18ffdf
cmake-utils.eclass: Case insensitive comment_add_subdirectory
eclass/cmake-utils.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index ea88e48..fa0ddca 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
}