mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
chore: add an option to tests
that enable/disable to use unreleased toml features
This commit is contained in:
@@ -50,6 +50,14 @@ if(COMPILER_SUPPORTS_WPEDANTIC)
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpedantic")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wpedantic")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
option(TOML11_USE_UNRELEASED_TOML_FEATURES
|
||||||
|
"use features in toml-lang/toml master while testing" OFF)
|
||||||
|
|
||||||
|
if(TOML11_USE_UNRELEASED_TOML_FEATURES)
|
||||||
|
message(STATUS "adding TOML11_USE_UNRELEASED_TOML_FEATURES flag")
|
||||||
|
add_definitions("-DTOML11_USE_UNRELEASED_TOML_FEATURES")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Disable some MSVC warnings
|
# Disable some MSVC warnings
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# conversion from 'double' to 'unsigned int', possible loss of data
|
# conversion from 'double' to 'unsigned int', possible loss of data
|
||||||
|
Reference in New Issue
Block a user