mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-19 13:30:38 +01:00
Replace tabs by 4 spaces in cmake build system files
This commit is contained in:
parent
58b3d6ff20
commit
781afd86a3
3 changed files with 25 additions and 25 deletions
|
|
@ -1,9 +1,9 @@
|
|||
|
||||
if (DBUS_INSTALL_SYSTEM_LIBS)
|
||||
if (MINGW)
|
||||
else (MINGW)
|
||||
INCLUDE(InstallRequiredSystemLibraries)
|
||||
endif (MINGW)
|
||||
if (MINGW)
|
||||
else (MINGW)
|
||||
INCLUDE(InstallRequiredSystemLibraries)
|
||||
endif (MINGW)
|
||||
install(FILES ${LIBEXPAT_LIBRARIES} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
endif (DBUS_INSTALL_SYSTEM_LIBS)
|
||||
|
||||
|
|
|
|||
|
|
@ -155,14 +155,14 @@ endmacro(autoheaderchecks)
|
|||
# not implemented yet
|
||||
#
|
||||
macro(autoconfig template output)
|
||||
file(READ ${template} contents)
|
||||
# Convert file contents into a CMake list (where each element in the list
|
||||
# is one line of the file)
|
||||
STRING(REGEX REPLACE ";" "\\\\;" contents "${contents}")
|
||||
STRING(REGEX REPLACE "\n" ";" contents "${contents}")
|
||||
foreach(line contents)
|
||||
message(STATUS ${line})
|
||||
# find #undef lines
|
||||
# append to config.h #define <variable-name> <variable-content>
|
||||
endforeach()
|
||||
file(READ ${template} contents)
|
||||
# Convert file contents into a CMake list (where each element in the list
|
||||
# is one line of the file)
|
||||
STRING(REGEX REPLACE ";" "\\\\;" contents "${contents}")
|
||||
STRING(REGEX REPLACE "\n" ";" contents "${contents}")
|
||||
foreach(line contents)
|
||||
message(STATUS ${line})
|
||||
# find #undef lines
|
||||
# append to config.h #define <variable-name> <variable-content>
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@
|
|||
# mode==split : standard behavior of cmake, split headers and sources
|
||||
# mode== <other values" : code is in this folder
|
||||
macro(project_source_group mode sources headers)
|
||||
#message(STATUS ${mode})
|
||||
#message(STATUS ${sources} ${headers})
|
||||
if(${mode} MATCHES "flat")
|
||||
source_group("Source Files" Files)
|
||||
source_group("Header Files" Files)
|
||||
source_group("cmake" FILES CMakeLists.txt)
|
||||
else(${mode} MATCHES "flat")
|
||||
if(NOT ${mode} MATCHES "split")
|
||||
source_group("${mode}" FILES ${${sources}} ${${headers}})
|
||||
endif(NOT ${mode} MATCHES "split")
|
||||
endif(${mode} MATCHES "flat")
|
||||
#message(STATUS ${mode})
|
||||
#message(STATUS ${sources} ${headers})
|
||||
if(${mode} MATCHES "flat")
|
||||
source_group("Source Files" Files)
|
||||
source_group("Header Files" Files)
|
||||
source_group("cmake" FILES CMakeLists.txt)
|
||||
else(${mode} MATCHES "flat")
|
||||
if(NOT ${mode} MATCHES "split")
|
||||
source_group("${mode}" FILES ${${sources}} ${${headers}})
|
||||
endif(NOT ${mode} MATCHES "split")
|
||||
endif(${mode} MATCHES "flat")
|
||||
endmacro(project_source_group mode sources headers)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue