File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -80,14 +80,19 @@ add_clar_test(proxy -v -sonline::clone::proxy)
8080add_clar_test(auth_clone -v -sonline::clone::cred)
8181add_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+
8489add_executable (headertest headertest.c)
8590set_target_properties (headertest PROPERTIES C_STANDARD 90)
8691set_target_properties (headertest PROPERTIES C_EXTENSIONS OFF )
8792target_include_directories (headertest PRIVATE ${LIBGIT2_INCLUDES} )
8893
8994if (MSVC )
90- target_compile_options (headertest PUBLIC /W4 /WX)
95+ target_compile_options (headertest PUBLIC /W4 /WX)
9196else ()
92- target_compile_options (headertest PUBLIC -Wall -Wextra -pedantic -Werror)
97+ target_compile_options (headertest PUBLIC -Wall -Wextra -pedantic -Werror)
9398endif ()
You can’t perform that action at this time.
0 commit comments