From c94139e0fa1fa495dff2183e24d194d5b83c3d61 Mon Sep 17 00:00:00 2001 From: aMannus Date: Tue, 6 May 2025 14:19:02 +0200 Subject: [PATCH] Fix __cplusplus macro for visual studio --- soh/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/soh/CMakeLists.txt b/soh/CMakeLists.txt index 90fa3c363..66585e58d 100644 --- a/soh/CMakeLists.txt +++ b/soh/CMakeLists.txt @@ -446,6 +446,7 @@ endif() # Compile and link options ################################################################################ if(MSVC) + target_compile_options(${PROJECT_NAME} PUBLIC "/Zc:__cplusplus") if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64") target_compile_options(${PROJECT_NAME} PRIVATE $<$: