summaryrefslogtreecommitdiff
path: root/user/mistserver/fix-cmake-test-format.patch
blob: 07161a2c577efafbc793fbb616de4f9effaed6b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
I don't know if this is correct.

https://gitlab.kitware.com/cmake/cmake/-/issues/19109

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -931,24 +931,24 @@
 ########################################
 add_executable(urltest test/url.cpp ${BINARY_DIR}/mist/.headers)
 target_link_libraries(urltest mist)
-add_test(URLTest COMMAND urltest)
+add_test(NAME URLTest COMMAND urltest)
 add_executable(logtest test/log.cpp ${BINARY_DIR}/mist/.headers)
 target_link_libraries(logtest mist)
-add_test(LOGTest COMMAND logtest)
+add_test(NAME LOGTest COMMAND logtest)
 add_executable(downloadertest test/downloader.cpp ${BINARY_DIR}/mist/.headers)
 target_link_libraries(downloadertest mist)
-add_test(DownloaderTest COMMAND downloadertest)
+add_test(NAME DownloaderTest COMMAND downloadertest)
 add_executable(urireadertest test/urireader.cpp ${BINARY_DIR}/mist/.headers)
 target_link_libraries(urireadertest mist)
-add_test(URIReaderTest COMMAND urireadertest)
+add_test(NAME URIReaderTest COMMAND urireadertest)
 add_executable(jsontest test/json.cpp ${BINARY_DIR}/mist/.headers)
 target_link_libraries(jsontest mist)
-add_test(JSONTest COMMAND jsontest)
+add_test(NAME JSONTest COMMAND jsontest)
 add_executable(resolvetest test/resolve.cpp ${BINARY_DIR}/mist/.headers)
 target_link_libraries(resolvetest mist)
 add_executable(bitwritertest test/bitwriter.cpp ${BINARY_DIR}/mist/.headers)
 target_link_libraries(bitwritertest mist)
-add_test(BitWriterTest COMMAND bitwritertest)
+add_test(NAME BitWriterTest COMMAND bitwritertest)
 add_executable(streamstatustest test/status.cpp ${BINARY_DIR}/mist/.headers)
 target_link_libraries(streamstatustest mist)
 add_executable(websockettest test/websocket.cpp ${BINARY_DIR}/mist/.headers)