Skip to content

Commit c834e47

Browse files
committed
Merge pull request cpp-netlib#262 from deanberris/0.9-devel
Fixes cpp-netlib#261
2 parents fc5569c + a720a0b commit c834e47

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)