1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37:53 +00:00

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.
This commit is contained in:
elsid 2023-11-23 00:04:22 +01:00
parent 08538dd137
commit 829a9160c3
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -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