cmake-utils.eclass: replace spaces with tabs
authorMichael Palimaka <kensington@gentoo.org>
Fri, 18 Mar 2016 06:16:51 +0000 (17:16 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Fri, 18 Mar 2016 06:17:53 +0000 (17:17 +1100)
eclass/cmake-utils.eclass

index 12b8dff178e31cea9dd4dc81e373efeecac8c04d..5f7bb8162d19162628fd19a3ef62a7576f9e933a 100644 (file)
@@ -264,14 +264,14 @@ _cmake_generator_to_use() {
 # @DESCRIPTION:
 # Comment out an add_subdirectory call in CMakeLists.txt in the current directory
 cmake_comment_add_subdirectory() {
-        if [[ -z ${1} ]]; then
-                die "comment_add_subdirectory must be passed the directory name to comment"
-        fi
-
-        if [[ -e "CMakeLists.txt" ]]; then
-                sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1//\//\\/}[[:space:]]*)/I s/^/#DONOTCOMPILE /" \
-                        -i CMakeLists.txt || die "failed to comment add_subdirectory(${1})"
-        fi
+       if [[ -z ${1} ]]; then
+               die "comment_add_subdirectory must be passed the directory name to comment"
+       fi
+
+       if [[ -e "CMakeLists.txt" ]]; then
+               sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1//\//\\/}[[:space:]]*)/I s/^/#DONOTCOMPILE /" \
+                       -i CMakeLists.txt || die "failed to comment add_subdirectory(${1})"
+       fi
 }
 
 # @FUNCTION: comment_add_subdirectory