Skip to content

Commit a720a0b

Browse files
committed
1 parent b5eb21f commit a720a0b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libs/network/example/CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ if (UNIX)
105105
${BOOST_SERVER_LIBS}
106106
${Boost_FILESYSTEM_LIBRARY}
107107
${CMAKE_THREAD_LIBS_INIT}
108-
cppnetlib-server-parsers
109-
rt)
108+
cppnetlib-server-parsers)
109+
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
110+
target_link_libraries(fileserver rt)
111+
endif()
110112
endif (UNIX)
111113

112114
set_target_properties(http_client PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CPP-NETLIB_BINARY_DIR}/example)

0 commit comments

Comments
 (0)