aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authortholenst <tholenst@google.com>2019-06-17 06:41:34 -0700
committerCopybara-Service <copybara-worker@google.com>2019-06-17 06:42:09 -0700
commitf019077cd4dd779de42a9618234d9a5ff4d9d3e5 (patch)
tree346356efc4727c380a27bf6d85be8d77840bb533 /cmake
parent1e440f41404f38050ece210a41f846b9d977c3f1 (diff)
downloadtink-f019077cd4dd779de42a9618234d9a5ff4d9d3e5.tar.gz
Run the unit tests with cmake under kokoro.
PiperOrigin-RevId: 253569428
Diffstat (limited to 'cmake')
-rw-r--r--cmake/TinkBuildRules.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/TinkBuildRules.cmake b/cmake/TinkBuildRules.cmake
index e2e824b78..1e1c00194 100644
--- a/cmake/TinkBuildRules.cmake
+++ b/cmake/TinkBuildRules.cmake
@@ -179,6 +179,8 @@ function(tink_cc_test)
set_property(TARGET ${_target_name}
PROPERTY FOLDER "${TINK_IDE_FOLDER}/Tests")
+ set_property(TARGET ${_target_name} PROPERTY CXX_STANDARD ${TINK_CXX_STANDARD})
+ set_property(TARGET ${_target_name} PROPERTY CXX_STANDARD_REQUIRED true)
if (${CMAKE_VERSION} VERSION_LESS 3.9)
add_test(NAME ${_target_name} COMMAND ${_target_name})