chore: enable to use __cplusplus on MSVC

related: https://github.com/ToruNiina/toml11/issues/112
This commit is contained in:
ToruNiina
2020-09-16 22:16:40 +09:00
parent 07ea5e52e2
commit 8c2560761b
3 changed files with 20 additions and 0 deletions

View File

@@ -37,6 +37,10 @@ else()
endif()
endif()
if(MSVC)
add_definitions("/Zc:__cplusplus")
endif()
# Set some common directories
include(GNUInstallDirs)
set(toml11_install_cmake_dir ${CMAKE_INSTALL_LIBDIR}/cmake/toml11)