mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-16 08:27:31 +08:00
ci: check compiler version detected by cmake
This commit is contained in:
@@ -41,6 +41,7 @@ if(MSVC)
|
||||
add_definitions("/Zc:__cplusplus") # define __cplusplus value correctly
|
||||
add_definitions("/utf-8") # enable to use u8"" literal
|
||||
if(MSVC_VERSION LESS 1910)
|
||||
message(STATUS "MSVC < 1910. DEFINE_CONVERSION_NON_INTRUSIVE is disabled")
|
||||
add_definitions(-DTOML11_WITHOUT_DEFINE_NON_INTRUSIVE)
|
||||
elseif(MSVC_VERSION LESS 1920)
|
||||
add_definitions("/experimental:preprocessor") # MSVC 2017
|
||||
|
Reference in New Issue
Block a user