From 904222bcd0bd9ed5c825e6be621c4b80189f1b60 Mon Sep 17 00:00:00 2001 From: pxLi Date: Wed, 28 Jul 2021 20:21:37 +0800 Subject: [PATCH] fix cufilejni build w/ c++17 (#8877) Signed-off-by: Peixin Li cufilejni was not specified CXX standard, so if `ENABLE_GDS=ON`, it will fail w/ ``` error: 'is_same_v' is not a member of 'std'; did you mean 'is_same' ``` Authors: - pxLi (https://github.com/pxLi) Approvers: - MithunR (https://github.com/mythrocks) URL: https://github.com/rapidsai/cudf/pull/8877 --- java/src/main/native/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/java/src/main/native/CMakeLists.txt b/java/src/main/native/CMakeLists.txt index 1b0b747f92b..c018c0aa742 100755 --- a/java/src/main/native/CMakeLists.txt +++ b/java/src/main/native/CMakeLists.txt @@ -293,6 +293,14 @@ target_compile_definitions(cudfjni if(USE_GDS) add_library(cufilejni SHARED "src/CuFileJni.cpp") + SET_TARGET_PROPERTIES(cufilejni + PROPERTIES BUILD_RPATH "\$ORIGIN" + # set target compile options + CXX_STANDARD 17 + CXX_STANDARD_REQUIRED ON + CUDA_STANDARD 17 + CUDA_STANDARD_REQUIRED ON + ) target_include_directories(cufilejni PRIVATE "${cuFile_INCLUDE_DIRS}") target_link_libraries(cufilejni PRIVATE cudfjni "${cuFile_LIBRARIES}") endif(USE_GDS)