From aca02d209b398e76a137364bbf5b2458348307d0 Mon Sep 17 00:00:00 2001 From: Yu Zeng <13041239@hdu.edu.cn> Date: Tue, 19 Jan 2021 11:04:57 +0800 Subject: [PATCH] Fix compile error when use msvc 2019 (#754) See https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3a02386b..6b52b48e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,7 @@ if(MSVC) /wd4800 /wd4068 # Disable unknown pragma warning /std:c++17 + /Zc:__cplusplus $<$:/FS> ) # relink system libs