Skip to content

Commit d9d6945

Browse files
committed
Merge pull request #325 from patriotyk/master
Reordered linking of static libraries (-lpthread should be after the static library).
2 parents 8df1f1c + 1b5a013 commit d9d6945

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

contrib/http_examples/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ else()
5858
endif()
5959
target_link_libraries(simple_wget
6060
${BOOST_CLIENT_LIBS}
61-
${CMAKE_THREAD_LIBS_INIT}
62-
${simple_wget_linklibs})
61+
${simple_wget_linklibs}
62+
${CMAKE_THREAD_LIBS_INIT})
6363

6464
if(CPP-NETLIB_BUILD_SINGLE_LIB)
6565
set(atom_reader_linklibs cppnetlib)
@@ -78,8 +78,8 @@ else()
7878
endif()
7979
target_link_libraries(atom_reader
8080
${BOOST_CLIENT_LIBS}
81-
${CMAKE_THREAD_LIBS_INIT}
82-
${atom_reader_linklibs})
81+
${atom_reader_linklibs}
82+
${CMAKE_THREAD_LIBS_INIT})
8383

8484
if(CPP-NETLIB_BUILD_SINGLE_LIB)
8585
set(rss_reader_linklibs cppnetlib)
@@ -97,8 +97,8 @@ else()
9797
endif()
9898
target_link_libraries(rss_reader
9999
${BOOST_CLIENT_LIBS}
100-
${CMAKE_THREAD_LIBS_INIT}
101-
${rss_reader_linklibs})
100+
${rss_reader_linklibs}
101+
${CMAKE_THREAD_LIBS_INIT})
102102

103103
#target_link_libraries(twitter_search
104104
# ${BOOST_CLIENT_LIBS}
@@ -138,8 +138,8 @@ else()
138138
endif()
139139
target_link_libraries(hello_world_client
140140
${BOOST_CLIENT_LIBS}
141-
${CMAKE_THREAD_LIBS_INIT}
142-
${hello_world_client_linklibs})
141+
${hello_world_client_linklibs}
142+
${CMAKE_THREAD_LIBS_INIT})
143143

144144
if (OPENSSL_FOUND)
145145
target_link_libraries(simple_wget ${OPENSSL_LIBRARIES})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy