Add travis ci configuration file

This commit is contained in:
Michael Tsukerman
2019-09-08 15:42:46 +02:00
committed by Howard Hinnant
parent c56f915cc3
commit fe491eff1c
3 changed files with 73 additions and 0 deletions

View File

@@ -14,6 +14,12 @@ option( USE_TZ_DB_IN_DOT "Save the timezone database in the current folder" OFF
option( BUILD_SHARED_LIBS "Build a shared version of library" OFF )
option( ENABLE_DATE_TESTING "Enable unit tests" ON )
option( DISABLE_STRING_VIEW "Disable string view" OFF )
option( COMPILE_WITH_C_LOCALE "pass -DONLY_C_LOCALE=1 to copiler")
if(COMPILE_WITH_C_LOCALE)
#To workaround libstdc++ issue https://github.com/HowardHinnant/date/issues/388
add_definitions(-DONLY_C_LOCALE=1)
endif()
function( print_option OPT )
if ( NOT DEFINED PRINT_OPTION_CURR_${OPT} OR ( NOT PRINT_OPTION_CURR_${OPT} STREQUAL ${OPT} ) )