From 1305663d991d37607964cbc6b7c08954677992e3 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 12 Mar 2021 15:10:15 +0200 Subject: [PATCH] make sure __cplusplus is defined under msvc --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 45813bac..d5d95934 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD_REQUIRED ON) endif() -# make sure __cplusplus is defined under msvc +# make sure __cplusplus is defined when using msvc if(MSVC) string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus") endif()