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

Commit

Permalink
Merge pull request #12 from measurement-kit/release/v0.20.2
Browse files Browse the repository at this point in the history
Release v0.20.2
  • Loading branch information
bassosimone authored May 13, 2018
2 parents af3cdac + e3f934a commit 18239e4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
14 changes: 12 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ endif()
# Library

add_library(
ndt
STATIC
ndt_objects
OBJECT
curlx.cpp
curlx.hpp
libndt.cpp
Expand All @@ -111,6 +111,16 @@ add_library(
strtonum.h
)
target_include_directories(
ndt_objects PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CURL_INCLUDE_DIRS}
)

add_library(ndt $<TARGET_OBJECTS:ndt_objects>)
target_include_directories(
# Duplicate includes of `ndt_objects` because when building binaries we do
# not use `ndt_objects`, so includes are not transitively picked up.
# TODO(bassosimone): we can perhaps do this using a generator expression
# but so far I have failed to do this properly.
ndt PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CURL_INCLUDE_DIRS}
)
Expand Down
1 change: 1 addition & 0 deletions libndt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,7 @@ bool Client::query_mlabns_curl(const std::string &url, long timeout,
}
return true;
#else
(void)url, (void)timeout, (void)body;
EMIT_WARNING("cURL not compiled in; don't know how to get server");
return false;
#endif
Expand Down
2 changes: 1 addition & 1 deletion libndt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace libndt {

constexpr uint64_t api_major = 0;
constexpr uint64_t api_minor = 20;
constexpr uint64_t api_patch = 1;
constexpr uint64_t api_patch = 2;

constexpr uint8_t nettest_middlebox = 1 << 0;
constexpr uint8_t nettest_upload = 1 << 1;
Expand Down

0 comments on commit 18239e4

Please sign in to comment.