From 95f1c323320ce5b440105e603f803aeedfbc4d45 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 10 Mar 2016 11:57:02 +0100 Subject: [PATCH] Do not add -std=c++11 option for Visual Studio. --- coreapi/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coreapi/CMakeLists.txt b/coreapi/CMakeLists.txt index d299db60c..f67c36b9a 100644 --- a/coreapi/CMakeLists.txt +++ b/coreapi/CMakeLists.txt @@ -177,7 +177,9 @@ endif() if(BELCARD_FOUND) list(APPEND LIBS ${BELCARD_LIBRARIES}) list(APPEND LINPHONE_SOURCE_FILES_CXX vcard.cc) - list(APPEND STRICT_OPTIONS_CXX "-std=c++11") + if(NOT MSVC) + list(APPEND STRICT_OPTIONS_CXX "-std=c++11") + endif() if(APPLE) list(APPEND STRICT_OPTIONS_CXX "-stdlib=libc++") endif()