Skip to content

Commit 86685f8

Browse files
committed
cmake: better explain why headertests exists
1 parent 7dcc29f commit 86685f8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,19 @@ add_clar_test(proxy -v -sonline::clone::proxy)
8080
add_clar_test(auth_clone -v -sonline::clone::cred)
8181
add_clar_test(auth_clone_and_push -v -sonline::clone::push -sonline::push)
8282

83-
# Header file validation project
83+
#
84+
# Header file validation project: ensure that we do not publish any sloppy
85+
# definitions in our headers and that a consumer can include <git2.dll>
86+
# even when they have aggressive C90 warnings enabled.
87+
#
88+
8489
add_executable(headertest headertest.c)
8590
set_target_properties(headertest PROPERTIES C_STANDARD 90)
8691
set_target_properties(headertest PROPERTIES C_EXTENSIONS OFF)
8792
target_include_directories(headertest PRIVATE ${LIBGIT2_INCLUDES})
8893

8994
if (MSVC)
90-
target_compile_options(headertest PUBLIC /W4 /WX)
95+
target_compile_options(headertest PUBLIC /W4 /WX)
9196
else()
92-
target_compile_options(headertest PUBLIC -Wall -Wextra -pedantic -Werror)
97+
target_compile_options(headertest PUBLIC -Wall -Wextra -pedantic -Werror)
9398
endif()

0 commit comments

Comments
 (0)