mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
cmake: only generate test cert when SERVER and TESTAPPS enabled
apart from LWS_WITHOUT_TEST_SERVER the test server will also not be built if LWS_WITHOUT_TESTAPPS or LWS_WITHOUT_SERVER is defined, we update the CMake configuration to skip cert generation and installation in those cases. Signed-off-by: Adam Wolk <adam.wolk@koparo.com>
This commit is contained in:
parent
0ed131e6a7
commit
2befafca77
1 changed files with 7 additions and 4 deletions
|
@ -1285,7 +1285,7 @@ endif()
|
|||
|
||||
set(GENCERTS 0)
|
||||
|
||||
if (LWS_WITH_SSL AND OPENSSL_EXECUTABLE AND NOT LWS_WITHOUT_TEST_SERVER)
|
||||
if (LWS_WITH_SSL AND OPENSSL_EXECUTABLE AND NOT LWS_WITHOUT_TEST_SERVER AND NOT LWS_WITHOUT_SERVER AND NOT LWS_WITHOUT_TESTAPPS)
|
||||
set(GENCERTS 1)
|
||||
endif()
|
||||
if (LWS_WITH_ESP32)
|
||||
|
@ -1938,9 +1938,12 @@ if (LWS_WITH_CGI)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
install(FILES test-apps/lws-ssh-test-keys;test-apps/lws-ssh-test-keys.pub
|
||||
DESTINATION share/libwebsockets-test-server
|
||||
COMPONENT examples)
|
||||
|
||||
if (NOT LWS_WITHOUT_TEST_SERVER AND NOT LWS_WITHOUT_SERVER AND NOT LWS_WITHOUT_TESTAPPS)
|
||||
install(FILES test-apps/lws-ssh-test-keys;test-apps/lws-ssh-test-keys.pub
|
||||
DESTINATION share/libwebsockets-test-server
|
||||
COMPONENT examples)
|
||||
endif()
|
||||
|
||||
# plugins
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue