Skip to content

Commit

Permalink
Merge branch 'msvc_cpp_version' into 'master'
Browse files Browse the repository at this point in the history
Enable __cplusplus for MSVC

See merge request OpenMW/openmw!3611
  • Loading branch information
Assumeru committed Nov 24, 2023
2 parents 9873ab2 + 829a916 commit 47d176e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47d176e

Please sign in to comment.