]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: also build certs when building test executables
authorViktor Szakats <commit@vsz.me>
Sat, 29 Mar 2025 12:29:26 +0000 (13:29 +0100)
committerViktor Szakats <commit@vsz.me>
Sun, 30 Mar 2025 11:35:09 +0000 (13:35 +0200)
To support running tests directly via `runtests.pl` after building
the test targets. Also to sync with the same update for autotools.

Follow-up to 0c1ad21f978c8f5acf3d0c1708d83a93635d9df3 #16845
Closes #16866

tests/certs/CMakeLists.txt

index 83c0967377e2e533c90ec0c49e24db5caadd5b1b..2bc8e5ce07109bfe3d3fcdd3973d89afa21f690c 100644 (file)
@@ -31,6 +31,7 @@ add_custom_command(OUTPUT ${GENERATEDCERTS}
   VERBATIM
 )
 add_custom_target(build-certs DEPENDS ${GENERATEDCERTS})
+add_dependencies(testdeps build-certs)
 
 add_custom_target(clean-certs
   COMMAND ${CMAKE_COMMAND} -E remove ${GENERATEDCERTS}