Skip to content

Commit

Permalink
Update raft tests to compile with C++17 features enabled (#973)
Browse files Browse the repository at this point in the history
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.

Authors:
  - Robert Maynard (https://github.com/robertmaynard)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: #973
  • Loading branch information
robertmaynard authored Nov 1, 2022
1 parent 0df8493 commit 93a4273
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 93a4273

Please sign in to comment.