Commit 65630ce7 authored by Kenton Varda's avatar Kenton Varda

Fix cmake build on GCC.

parent 9632072b
...@@ -264,6 +264,11 @@ if(BUILD_TESTING) ...@@ -264,6 +264,11 @@ if(BUILD_TESTING)
${test_capnp_h_files} ${test_capnp_h_files}
) )
target_link_libraries(capnp-parse-tests ${test_libraries}) target_link_libraries(capnp-parse-tests ${test_libraries})
if(NOT MSVC)
set_target_properties(capnp-parse-tests
PROPERTIES COMPILE_FLAGS "-Wno-deprecated-declarations"
)
endif()
add_dependencies(check capnp-parse-tests) add_dependencies(check capnp-parse-tests)
add_test(NAME capnp-parse-tests-run COMMAND capnp-parse-tests) add_test(NAME capnp-parse-tests-run COMMAND capnp-parse-tests)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment