1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-06 09:07:19 +02:00

cmake: pass /Zc:__cplusplus to msvc to set correct __cplusplus macro

https://blogs.msdn.microsoft.com/vcblog/2018/04/09/msvc-now-correctly-reports-__cplusplus/
This commit is contained in:
Anonymous Maarten 2018-12-12 13:54:33 +01:00
parent c066077a4c
commit e01a5365b0

View File

@ -29,6 +29,7 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_options(rw_interface
INTERFACE
"/MP"
"/Zc:__cplusplus"
)
else()
message(FATAL_ERROR "Unknown compiler ID: '${CMAKE_CXX_COMPILER_ID}'")