From d08886227f79b196bb5546ceff7c30405a1bc9f0 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Tue, 1 Nov 2022 11:41:55 -0400 Subject: [PATCH] Update raft tests to compile with C++17 features enabled The raft tests require C++17 features but doesn't request this compiler mode, so compilation will fail with compilers that default to 11 or 14. --- cpp/test/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt index 4280be91ff..c7bf166439 100644 --- a/cpp/test/CMakeLists.txt +++ b/cpp/test/CMakeLists.txt @@ -51,6 +51,10 @@ function(ConfigureTest) PROPERTIES # set target compile options INSTALL_RPATH "\$ORIGIN/../../../lib" + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + CUDA_STANDARD 17 + CUDA_STANDARD_REQUIRED ON ) target_compile_options(${TEST_NAME}