Added string_view tests and C++17 tests for travis

This commit is contained in:
Daniel Evers
2019-01-28 10:10:08 +01:00
committed by Roland Bock
parent ac3a8290ff
commit 460557c6e0
8 changed files with 45 additions and 1 deletions

View File

@@ -26,6 +26,12 @@ function(test_compile name)
set(target sqlpp11_${name})
add_executable(${target} ${name}.cpp)
target_link_libraries(${target} PRIVATE sqlpp11 sqlpp11_testing)
# conditionally bump to a higher C++ standard to test compatibility
if (SQLPP11_TESTS_CXX_STD)
set_property(TARGET sqlpp11_${name} PROPERTY CXX_STANDARD ${SQLPP11_TESTS_CXX_STD})
set_property(TARGET sqlpp11_${name} PROPERTY CXX_STANDARD_REQUIRED yes)
set_property(TARGET sqlpp11_${name} PROPERTY CXX_EXTENSIONS no)
endif()
endfunction()
test_compile(result_row)