aboutsummaryrefslogtreecommitdiff
path: root/cmake/macros/GroupSources.cmake
diff options
context:
space:
mode:
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()