Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit 18239e4

Browse files
authored
Merge pull request #12 from measurement-kit/release/v0.20.2
Release v0.20.2
2 parents af3cdac + e3f934a commit 18239e4

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CMakeLists.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ endif()
101101
# Library
102102

103103
add_library(
104-
ndt
105-
STATIC
104+
ndt_objects
105+
OBJECT
106106
curlx.cpp
107107
curlx.hpp
108108
libndt.cpp
@@ -111,6 +111,16 @@ add_library(
111111
strtonum.h
112112
)
113113
target_include_directories(
114+
ndt_objects PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
115+
${CURL_INCLUDE_DIRS}
116+
)
117+
118+
add_library(ndt $<TARGET_OBJECTS:ndt_objects>)
119+
target_include_directories(
120+
# Duplicate includes of `ndt_objects` because when building binaries we do
121+
# not use `ndt_objects`, so includes are not transitively picked up.
122+
# TODO(bassosimone): we can perhaps do this using a generator expression
123+
# but so far I have failed to do this properly.
114124
ndt PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
115125
${CURL_INCLUDE_DIRS}
116126
)

libndt.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,7 @@ bool Client::query_mlabns_curl(const std::string &url, long timeout,
10421042
}
10431043
return true;
10441044
#else
1045+
(void)url, (void)timeout, (void)body;
10451046
EMIT_WARNING("cURL not compiled in; don't know how to get server");
10461047
return false;
10471048
#endif

libndt.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace libndt {
2727

2828
constexpr uint64_t api_major = 0;
2929
constexpr uint64_t api_minor = 20;
30-
constexpr uint64_t api_patch = 1;
30+
constexpr uint64_t api_patch = 2;
3131

3232
constexpr uint8_t nettest_middlebox = 1 << 0;
3333
constexpr uint8_t nettest_upload = 1 << 1;

0 commit comments

Comments
 (0)