Skip to content

Commit 1fc204b

Browse files
committed
Fix remaining build issues
1 parent 328a974 commit 1fc204b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ add_library(libzsync2 SHARED
1919
legacy_http.c
2020
legacy_progress.c
2121
zsmake.cpp
22-
${ZSYNC2_SRCS} ${ZSYNC2_HDRS}
22+
zsutil.cpp
2323
format_string.h
2424
${PROJECT_BINARY_DIR}/config.h
2525
${zsync2_public_headers}

src/zsclient.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
#include "zsglobal.h"
33

44
// system includes
5-
#include <iostream>
5+
#include <algorithm>
66
#include <deque>
7+
#include <fstream>
78
#include <fcntl.h>
9+
#include <iostream>
810
#include <set>
911
#include <sys/stat.h>
1012
#include <utility>

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ include_directories(../src)
1010
include_directories(${CPR_INCLUDE_DIRS})
1111

1212
add_executable(test_zsutil test_zsutil.cpp)
13-
target_link_libraries(test_zsutil gtest ${CPR_LIBRARIES})
13+
target_link_libraries(test_zsutil PRIVATE libzsync2 gtest cpr)
1414

1515
add_test(NAME test_zsutil COMMAND test_zsutil)

0 commit comments

Comments
 (0)