Set standard or default to C++17

Changed cmake to default to c++17 unless TZ_CXX_STANDARD is set(e.g. to 11,14 or 17)
This commit is contained in:
Darrell Wright 2018-01-03 13:40:17 -05:00 committed by Howard Hinnant
parent 2b6ee6378c
commit b7e58e193f

View File

@ -65,11 +65,7 @@ else( )
endif( )
if( NOT TZ_CXX_STANDARD )
if ( ${CMAKE_MINOR_VERSION} GREATER 7 )
set( TZ_CXX_STANDARD 17 )
else( )
set( TZ_CXX_STANDARD 14 )
endif( )
endif( )
set_property(TARGET tz PROPERTY CXX_STANDARD ${TZ_CXX_STANDARD})