From 651cfaba67dd5e5258ffbc13b777d1717dd1d99c Mon Sep 17 00:00:00 2001 From: Marco Porsch Date: Tue, 17 Dec 2024 16:35:58 +0100 Subject: [PATCH] cmake: openssl command line breaks --- test/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9fb16dd..0613e9e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -10,7 +10,17 @@ if(WITH_TLS) add_custom_command( OUTPUT ${CMAKE_BINARY_DIR}/test_key.pem ${CMAKE_BINARY_DIR}/test_cert.pem - COMMAND ${OPENSSL_BINARY} req -newkey rsa:2048 -new -nodes -x509 -days 3650 -subj "/" -batch -keyout ${CMAKE_BINARY_DIR}/test_key.pem -out ${CMAKE_BINARY_DIR}/test_cert.pem + COMMAND ${OPENSSL_BINARY} + req + -newkey rsa:2048 + -new + -nodes + -x509 + -days 3650 + -subj "/" + -batch + -keyout ${CMAKE_BINARY_DIR}/test_key.pem + -out ${CMAKE_BINARY_DIR}/test_cert.pem COMMENT "Generating a self-signed certificate and private key to test with" ) add_custom_target(generate_certificate DEPENDS ${CMAKE_BINARY_DIR}/test_key.pem ${CMAKE_BINARY_DIR}/test_cert.pem)