cmake-utils.eclass: Case insensitive comment_add_subdirectory
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Wed, 9 Dec 2015 17:11:26 +0000 (18:11 +0100)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 10 Dec 2015 17:58:35 +0000 (04:58 +1100)
eclass/cmake-utils.eclass

index ea88e4833316fb74f3a0119067e6b1512888da1a..fa0ddca92cf52d5e11a1d2ec750158445e36931a 100644 (file)
@@ -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:]]*)/s/^/#DONOTCOMPILE /" \
                         -i CMakeLists.txt || die "failed to comment add_subdirectory(${1})"
         fi
 }