Skip to content

Commit 83362a7

Browse files
the-horothewilsonator
authored andcommitted
runtime/CMakeLists.txt: Replace tabs with spaces
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
1 parent 1c36311 commit 83362a7

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

runtime/CMakeLists.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -240,20 +240,20 @@ if(PHOBOS2_DIR)
240240
endif()
241241

242242
if(PHOBOS_SYSTEM_ZLIB)
243-
find_package(ZLIB REQUIRED)
243+
find_package(ZLIB REQUIRED)
244244
else()
245-
# Phobos C parts
246-
file(GLOB_RECURSE PHOBOS2_C ${PHOBOS2_DIR}/etc/*.c)
247-
# remove zlib test modules
248-
list(REMOVE_ITEM PHOBOS2_C
245+
# Phobos C parts
246+
file(GLOB_RECURSE PHOBOS2_C ${PHOBOS2_DIR}/etc/*.c)
247+
# remove zlib test modules
248+
list(REMOVE_ITEM PHOBOS2_C
249249
${PHOBOS2_DIR}/etc/c/zlib/test/example.c
250250
${PHOBOS2_DIR}/etc/c/zlib/test/infcover.c
251251
${PHOBOS2_DIR}/etc/c/zlib/test/minigzip.c
252-
)
253-
CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
254-
if (HAVE_UNISTD_H)
255-
append("-DHAVE_UNISTD_H" CMAKE_C_FLAGS)
256-
endif()
252+
)
253+
CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
254+
if (HAVE_UNISTD_H)
255+
append("-DHAVE_UNISTD_H" CMAKE_C_FLAGS)
256+
endif()
257257
endif()
258258
endif()
259259

@@ -391,11 +391,11 @@ endforeach()
391391

392392
function(link_zlib phobos_target library_type)
393393
if(PHOBOS_SYSTEM_ZLIB)
394-
if(${library_type} STREQUAL "SHARED")
395-
target_link_libraries(${phobos_target} ZLIB::ZLIB)
396-
endif()
394+
if(${library_type} STREQUAL "SHARED")
395+
target_link_libraries(${phobos_target} ZLIB::ZLIB)
396+
endif()
397397
else()
398-
target_sources(${phobos_target} PRIVATE ${PHOBOS2_C})
398+
target_sources(${phobos_target} PRIVATE ${PHOBOS2_C})
399399
endif()
400400
endfunction()
401401

@@ -625,7 +625,7 @@ macro(build_runtime_libs druntime_o druntime_bc phobos2_o phobos2_bc c_flags ld_
625625

626626
if(PHOBOS2_DIR)
627627
add_library(phobos2-ldc${target_suffix} ${library_type} ${phobos2_o})
628-
link_zlib(phobos2-ldc${target_suffix} ${library_type})
628+
link_zlib(phobos2-ldc${target_suffix} ${library_type})
629629
set_common_library_properties(phobos2-ldc${target_suffix}
630630
phobos2-ldc${lib_suffix} ${output_path}
631631
"${c_flags}" "${ld_flags}" ${is_shared}
@@ -656,7 +656,7 @@ macro(build_runtime_libs druntime_o druntime_bc phobos2_o phobos2_bc c_flags ld_
656656
)
657657

658658
add_library(phobos2-ldc-lto${target_suffix} STATIC ${phobos2_bc})
659-
link_zlib(phobos2-ldc-lto${target_suffix} STATIC)
659+
link_zlib(phobos2-ldc-lto${target_suffix} STATIC)
660660
set_common_library_properties(phobos2-ldc-lto${target_suffix}
661661
phobos2-ldc-lto${lib_suffix} ${output_path}
662662
"${c_flags}" "${ld_flags}" OFF
@@ -982,9 +982,9 @@ function(build_test_runners name_suffix path_suffix d_flags linkflags is_shared)
982982
LINK_FLAGS ${linkflags}
983983
LINK_DEPENDS ${tested_lib_path}
984984
)
985-
if(PHOBOS_SYSTEM_ZLIB AND "${is_shared}" STREQUAL "OFF")
986-
target_link_libraries(${phobos_name} ZLIB::ZLIB)
987-
endif()
985+
if(PHOBOS_SYSTEM_ZLIB AND "${is_shared}" STREQUAL "OFF")
986+
target_link_libraries(${phobos_name} ZLIB::ZLIB)
987+
endif()
988988
add_test(build-${phobos_name} "${CMAKE_COMMAND}" --build ${CMAKE_BINARY_DIR} --target ${phobos_name})
989989
set(_GLOBAL_TESTRUNNERS "${_GLOBAL_TESTRUNNERS};${phobos_name}" CACHE INTERNAL "")
990990
endif()

0 commit comments

Comments
 (0)