From 829a9160c3a2569046cc1595322f710b3b3f0bdd Mon Sep 17 00:00:00 2001 From: elsid Date: Thu, 23 Nov 2023 00:04:22 +0100 Subject: [PATCH] Enable __cplusplus for MSVC To build OpenSceneGraph with osg::ref_ptr move constructor. This affects only code in the OpenMW itself including the file defining the constructor. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10d7fba386..13dce30702 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,6 +180,8 @@ if (MSVC) # there should be no relevant downsides to having it on: # https://docs.microsoft.com/en-us/cpp/build/reference/bigobj-increase-number-of-sections-in-dot-obj-file add_compile_options(/bigobj) + + add_compile_options(/Zc:__cplusplus) endif() # Set up common paths