make sure __cplusplus is defined under msvc
This commit is contained in:
parent
8f4efe57a2
commit
1305663d99
@ -30,7 +30,7 @@ if(NOT CMAKE_CXX_STANDARD)
|
|||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# make sure __cplusplus is defined under msvc
|
# make sure __cplusplus is defined when using msvc
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus")
|
string(APPEND CMAKE_CXX_FLAGS " /Zc:__cplusplus")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user