mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 11:52:40 +01: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:
parent
c066077a4c
commit
e01a5365b0
@ -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}'")
|
||||
|
Loading…
Reference in New Issue
Block a user