From 48af5d08fdbec89ef35b09bb55e230e18a099c4b Mon Sep 17 00:00:00 2001 From: AJ Schmidt Date: Wed, 15 Dec 2021 10:43:12 -0500 Subject: [PATCH] Update `CUDA_STANDARD` and `CXX_STANDARD` to `17` This PR updates the `CUDA_STANDARD` and `CXX_STANDARD` properties in CMake to be `17`. This resolves some build issues that are currently occurring in RAPIDS Docker builds. --- cmake/Utils.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Utils.cmake b/cmake/Utils.cmake index d675145f9223..b4400d50d3d0 100644 --- a/cmake/Utils.cmake +++ b/cmake/Utils.cmake @@ -170,7 +170,7 @@ function(xgboost_set_cuda_flags target) endif (MSVC) set_target_properties(${target} PROPERTIES - CUDA_STANDARD 14 + CUDA_STANDARD 17 CUDA_STANDARD_REQUIRED ON CUDA_SEPARABLE_COMPILATION OFF) endfunction(xgboost_set_cuda_flags) @@ -190,7 +190,7 @@ endmacro(xgboost_link_nccl) # compile options macro(xgboost_target_properties target) set_target_properties(${target} PROPERTIES - CXX_STANDARD 14 + CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON POSITION_INDEPENDENT_CODE ON) if (HIDE_CXX_SYMBOLS)