Skip to content

Commit

Permalink
cmake: openssl command line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mporsch committed Dec 17, 2024
1 parent 0a7135b commit 651cfab
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 651cfab

Please sign in to comment.