aboutsummaryrefslogtreecommitdiff
path: root/cmake/macros/GroupSources.cmake
diff options
context:
space:
mode:
authoripriver <g1ran1q@gmail.com>2020-06-22 15:27:03 +0300
committerShauren <shauren.trinity@gmail.com>2022-01-06 23:40:39 +0100
commitbde36062b7a0bf621086e73a5d419cd8637e9e96 (patch)
tree509f8303b1f6e00cb1b4c44d88e5e7eb0093a369 /cmake/macros/GroupSources.cmake
parentc776218cb5b0cc8f9f6d4d509cf6c36212eb38aa (diff)
fixed indentation for cmake files
(cherry picked from commit a46d047f9466c6f16597755bb7c771a9d1a147f2)
Diffstat (limited to 'cmake/macros/GroupSources.cmake')
-rw-r--r--cmake/macros/GroupSources.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmake/macros/GroupSources.cmake b/cmake/macros/GroupSources.cmake
index 4a74a2d59f1..a9c58bc82c1 100644
--- a/cmake/macros/GroupSources.cmake
+++ b/cmake/macros/GroupSources.cmake
@@ -10,7 +10,7 @@
macro(GroupSources dir)
# Skip this if WITH_SOURCE_TREE is not set (empty string).
- if (NOT ${WITH_SOURCE_TREE} STREQUAL "")
+ if(NOT ${WITH_SOURCE_TREE} STREQUAL "")
# Include all header and c files
file(GLOB_RECURSE elements RELATIVE ${dir} *.h *.hpp *.c *.cpp *.cc)
@@ -19,12 +19,12 @@ macro(GroupSources dir)
get_filename_component(element_name ${element} NAME)
get_filename_component(element_dir ${element} DIRECTORY)
- if (NOT ${element_dir} STREQUAL "")
+ if(NOT ${element_dir} STREQUAL "")
# If the file is in a subdirectory use it as source group.
- if (${WITH_SOURCE_TREE} STREQUAL "flat")
+ if(${WITH_SOURCE_TREE} STREQUAL "flat")
# Build flat structure by using only the first subdirectory.
string(FIND ${element_dir} "/" delemiter_pos)
- if (NOT ${delemiter_pos} EQUAL -1)
+ if(NOT ${delemiter_pos} EQUAL -1)
string(SUBSTRING ${element_dir} 0 ${delemiter_pos} group_name)
source_group("${group_name}" FILES ${dir}/${element})
else()
@@ -45,7 +45,7 @@ macro(GroupSources dir)
endif()
endmacro()
-if (WITH_SOURCE_TREE STREQUAL "hierarchical-folders")
+if(WITH_SOURCE_TREE STREQUAL "hierarchical-folders")
# Use folders
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
endif()