From 18aa0f9e20945047544cd475c799c9706c0d1cba Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Fri, 23 Sep 2016 21:14:47 +0200 Subject: [PATCH] Fixed warning on non-GCC compilers --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a4090d..32426ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()