summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-05-30 10:16:49 +0200
committerDimitri Staessens <dimitri.staessens@ugent.be>2018-05-30 10:19:39 +0200
commit32845e55e31d66f8d075c102304fcf2dae473f34 (patch)
treeccf2f4abb099664ab29f7b1ab05b914df12f21e8 /src/ipcpd
parent352f9f38083176489d935900a4ddc7abc62cf297 (diff)
downloadouroboros-32845e55e31d66f8d075c102304fcf2dae473f34.tar.gz
ouroboros-32845e55e31d66f8d075c102304fcf2dae473f34.zip
build: Fix running make check standalone
In the current build an error would happen if a user simply runs make check after running cmake, since the kademlia protocol buffer file was not generated yet. This simply regenerates the file for the test. Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be> Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/normal/tests/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/normal/tests/CMakeLists.txt b/src/ipcpd/normal/tests/CMakeLists.txt
index be92888f..482711d5 100644
--- a/src/ipcpd/normal/tests/CMakeLists.txt
+++ b/src/ipcpd/normal/tests/CMakeLists.txt
@@ -18,9 +18,9 @@ get_filename_component(PARENT_DIR ${PARENT_PATH} NAME)
create_test_sourcelist(${PARENT_DIR}_tests test_suite.c
# Add new tests here
dht_test.c
-)
+ )
-set_source_files_properties(${KAD_PROTO_SRCS} PROPERTIES GENERATED TRUE)
+protobuf_generate_c(KAD_PROTO_SRCS KAD_PROTO_HDRS ../kademlia.proto)
add_executable(${PARENT_DIR}_test EXCLUDE_FROM_ALL ${${PARENT_DIR}_tests}
${KAD_PROTO_SRCS})