Remove CMAKE_THREAD_LIBS_INIT definition inside Install.cmake

This commit is contained in:
Axel Isouard 2017-03-27 13:23:57 +02:00
parent 67ac79ff0f
commit 2969a0f603

View file

@ -39,7 +39,7 @@ if (UNIX)
set(includedir "${INSTALL_INCLUDE_DIR}")
set(LIBWEBRTC_PC_LIBS "-L${INSTALL_LIB_DIR}" "-lwebrtc")
foreach(LIB_NAME ${LIBWEBRTC_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
foreach(LIB_NAME ${LIBWEBRTC_LIBRARIES})
if (LIB_NAME MATCHES "[\\/]")
get_filename_component(LIB_DIR "${LIB_NAME}" PATH)
get_filename_component(LIB_NAME "${LIB_NAME}" NAME_WE)
@ -54,7 +54,7 @@ if (UNIX)
set(LIB_NAME "-l${LIB_NAME}")
endif ()
list(APPEND LIBWEBRTC_PC_LIBS_PRIVATE "${LIB_NAME}")
endforeach(LIB_NAME ${LIBWEBRTC_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
endforeach(LIB_NAME ${LIBWEBRTC_LIBRARIES})
foreach(DEFINITION ${LIBWEBRTC_DEFINITIONS})
list(APPEND LIBWEBRTC_PC_DEFINITIONS "-D${DEFINITION}")