mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-15 02:08:01 +08:00
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:
parent
2b6ee6378c
commit
b7e58e193f
@ -65,11 +65,7 @@ else( )
|
|||||||
endif( )
|
endif( )
|
||||||
|
|
||||||
if( NOT TZ_CXX_STANDARD )
|
if( NOT TZ_CXX_STANDARD )
|
||||||
if ( ${CMAKE_MINOR_VERSION} GREATER 7 )
|
|
||||||
set( TZ_CXX_STANDARD 17 )
|
set( TZ_CXX_STANDARD 17 )
|
||||||
else( )
|
|
||||||
set( TZ_CXX_STANDARD 14 )
|
|
||||||
endif( )
|
|
||||||
endif( )
|
endif( )
|
||||||
|
|
||||||
set_property(TARGET tz PROPERTY CXX_STANDARD ${TZ_CXX_STANDARD})
|
set_property(TARGET tz PROPERTY CXX_STANDARD ${TZ_CXX_STANDARD})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user