From 5d336eb54f0cd30fb32d65ad5c69afa73b7007b8 Mon Sep 17 00:00:00 2001 From: Stanislav Ershov Date: Fri, 19 Oct 2018 01:51:37 +0300 Subject: [PATCH] Enable conformance mode for MSVC >= 15.5 --- Telegram/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/CMakeLists.txt b/Telegram/CMakeLists.txt index 5d55028ce..c6907080e 100644 --- a/Telegram/CMakeLists.txt +++ b/Telegram/CMakeLists.txt @@ -642,6 +642,10 @@ endif() target_compile_definitions(Kepka PRIVATE ${FFMPEG_DEFINITIONS}) +if(MSVC AND MSVC_VERSION GREATER_EQUAL 1912) + target_compile_options(Kepka PRIVATE /permissive-) +endif() + target_link_libraries(Kepka Qt5::Core Qt5::Widgets