Skip to content

Commit 02eed4b

Browse files
Unify indentation in CMakeLists.txt files to 2 spaces
1 parent 1bfbdaf commit 02eed4b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CMakeLists.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
66
set(CMAKE_CXX_EXTENSIONS OFF)
77

88
if (MSVC)
9-
add_compile_options(/W4 /WX /w44388)
9+
add_compile_options(/W4 /WX /w44388)
1010
else()
11-
add_compile_options(-Wall -Wextra -pedantic -Werror)
11+
add_compile_options(-Wall -Wextra -pedantic -Werror)
1212
endif()
1313

1414
include_directories(.)
1515

1616
option(BUILD_EXAMPLES "Build examples" OFF)
1717

1818
if (BUILD_EXAMPLES)
19-
add_subdirectory(Examples)
19+
add_subdirectory(Examples)
2020
endif()
2121

2222
option(BUILD_TESTS "Build unit tests" OFF)
2323

2424
if (BUILD_TESTS)
25-
enable_testing()
26-
add_subdirectory(Tests)
25+
enable_testing()
26+
add_subdirectory(Tests)
2727
endif()

Examples/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ file(GLOB SOURCES *.cpp)
55
find_package(Threads REQUIRED)
66

77
foreach(SOURCE ${SOURCES})
8-
get_filename_component(BIN_NAME ${SOURCE} NAME_WE)
9-
add_executable(${BIN_NAME} ${SOURCE})
10-
target_link_libraries(${BIN_NAME} PRIVATE Threads::Threads)
8+
get_filename_component(BIN_NAME ${SOURCE} NAME_WE)
9+
add_executable(${BIN_NAME} ${SOURCE})
10+
target_link_libraries(${BIN_NAME} PRIVATE Threads::Threads)
1111
endforeach()

0 commit comments

Comments
 (0)