Skip to content

Commit

Permalink
Tabs to whitespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Jun 2, 2017
1 parent d868120 commit 8036856
Show file tree
Hide file tree
Showing 32 changed files with 1,396 additions and 1,445 deletions.
44 changes: 22 additions & 22 deletions CleanDirectoryList.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@
# http://www.boost.org/LICENSE_1_0.txt)

if(__clean_directory_list)
return()
return()
endif()
set(__clean_directory_list YES)

function(clean_directory_list _var)
# combine variable's current value with additional list items
set(_in ${${_var}} ${ARGN})
# combine variable's current value with additional list items
set(_in ${${_var}} ${ARGN})

if(_in)
# Initial list cleaning
list(REMOVE_DUPLICATES _in)
if(_in)
# Initial list cleaning
list(REMOVE_DUPLICATES _in)

# Grab the absolute path of each actual directory
set(_out)
foreach(_dir ${_in})
if(IS_DIRECTORY "${_dir}")
get_filename_component(_dir "${_dir}" ABSOLUTE)
file(TO_CMAKE_PATH "${_dir}" _dir)
list(APPEND _out "${_dir}")
endif()
endforeach()
# Grab the absolute path of each actual directory
set(_out)
foreach(_dir ${_in})
if(IS_DIRECTORY "${_dir}")
get_filename_component(_dir "${_dir}" ABSOLUTE)
file(TO_CMAKE_PATH "${_dir}" _dir)
list(APPEND _out "${_dir}")
endif()
endforeach()

if(_out)
# Clean up the output list now
list(REMOVE_DUPLICATES _out)
endif()
if(_out)
# Clean up the output list now
list(REMOVE_DUPLICATES _out)
endif()

# return _out
set(${_var} "${_out}" PARENT_SCOPE)
endif()
# return _out
set(${_var} "${_out}" PARENT_SCOPE)
endif()
endfunction()
Loading

0 comments on commit 8036856

Please sign in to comment.