File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,8 @@ set(THREADS_PREFER_PTHREAD_FLAG TRUE)
228228find_package (Threads REQUIRED)
229229mongo_platform_use_target(Threads::Threads)
230230
231+ set_property (DIRECTORY APPEND PROPERTY pkg_config_LIBS ${CMAKE_THREAD_LIBS_INIT} )
232+
231233if (WIN32 )
232234 # Required for gethostbyname on Windows:
233235 mongo_platform_link_libraries(ws2_32)
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ function(_generate_pkg_config_content out)
286286 # XXX: Could we define a genex that can transform the INTERFACE_LINK_LIBRARIES to a list of
287287 # pkg-config-compatible "-l"-flags? That would remove the need to populate pkg_config_LIBS
288288 # manually, and instead rely on target properties to handle transitive dependencies.
289- string (APPEND libs "$<JOIN:${gx_libs} ; ${gx_linkopts} , >" )
289+ string (APPEND libs "$<JOIN:${gx_libs} , >" )
290290
291291 # Cflags:
292292 set (cflags)
You can’t perform that action at this time.
0 commit comments