Fixed warning on non-GCC compilers

This commit is contained in:
Daniel Wolf 2016-09-23 21:14:47 +02:00
parent 938079a75f
commit 18aa0f9e20
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ set(webRTCFiles
)
add_library(webRTC ${webRTCFiles})
target_compile_options(webRTC PRIVATE ${disableWarningsFlags})
target_compile_options(webRTC PRIVATE -pthread -lpthread)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
target_compile_options(webRTC PRIVATE -pthread -lpthread)
endif()
if (NOT WIN32)
target_compile_definitions(webRTC PRIVATE WEBRTC_POSIX)
endif()