From 2af49bda65cbf725251a6085b8f87b10f356796d Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Wed, 27 Nov 2024 16:44:05 +0000 Subject: [PATCH] Set build type for all examples. --- cpp/examples/basic/CMakeLists.txt | 3 +++ cpp/examples/billion_rows/CMakeLists.txt | 3 +++ cpp/examples/interop/CMakeLists.txt | 3 +++ cpp/examples/nested_types/CMakeLists.txt | 3 +++ cpp/examples/parquet_io/CMakeLists.txt | 3 +++ cpp/examples/strings/CMakeLists.txt | 3 +++ 6 files changed, 18 insertions(+) diff --git a/cpp/examples/basic/CMakeLists.txt b/cpp/examples/basic/CMakeLists.txt index a3fe699667a..7516d4e8d5d 100644 --- a/cpp/examples/basic/CMakeLists.txt +++ b/cpp/examples/basic/CMakeLists.txt @@ -16,6 +16,9 @@ project( include(../fetch_dependencies.cmake) +include(rapids-cmake) +rapids_cmake_build_type("Release") + # Configure your project here add_executable(basic_example src/process_csv.cpp) target_link_libraries(basic_example PRIVATE cudf::cudf) diff --git a/cpp/examples/billion_rows/CMakeLists.txt b/cpp/examples/billion_rows/CMakeLists.txt index d95bb73b258..87149ac821c 100644 --- a/cpp/examples/billion_rows/CMakeLists.txt +++ b/cpp/examples/billion_rows/CMakeLists.txt @@ -16,6 +16,9 @@ project( include(../fetch_dependencies.cmake) +include(rapids-cmake) +rapids_cmake_build_type("Release") + list(APPEND CUDF_CUDA_FLAGS --expt-extended-lambda --expt-relaxed-constexpr) add_library(groupby_results OBJECT groupby_results.cpp) diff --git a/cpp/examples/interop/CMakeLists.txt b/cpp/examples/interop/CMakeLists.txt index 2816f613d3d..6fbc1b50212 100644 --- a/cpp/examples/interop/CMakeLists.txt +++ b/cpp/examples/interop/CMakeLists.txt @@ -15,6 +15,9 @@ project( include(../fetch_dependencies.cmake) +include(rapids-cmake) +rapids_cmake_build_type("Release") + # The Arrow CMake is currently broken if the build type is not set set(CMAKE_BUILD_TYPE Release) # No need to install Arrow libs when only the final example executable is shipped. diff --git a/cpp/examples/nested_types/CMakeLists.txt b/cpp/examples/nested_types/CMakeLists.txt index 8a900f6b5ae..88e891f892a 100644 --- a/cpp/examples/nested_types/CMakeLists.txt +++ b/cpp/examples/nested_types/CMakeLists.txt @@ -16,6 +16,9 @@ project( include(../fetch_dependencies.cmake) +include(rapids-cmake) +rapids_cmake_build_type("Release") + # Configure your project here add_executable(deduplication deduplication.cpp) target_link_libraries(deduplication PRIVATE cudf::cudf) diff --git a/cpp/examples/parquet_io/CMakeLists.txt b/cpp/examples/parquet_io/CMakeLists.txt index a7d0146b170..b7d8fc14b6c 100644 --- a/cpp/examples/parquet_io/CMakeLists.txt +++ b/cpp/examples/parquet_io/CMakeLists.txt @@ -16,6 +16,9 @@ project( include(../fetch_dependencies.cmake) +include(rapids-cmake) +rapids_cmake_build_type("Release") + add_library(parquet_io_utils OBJECT common_utils.cpp io_source.cpp) target_compile_features(parquet_io_utils PRIVATE cxx_std_17) target_link_libraries(parquet_io_utils PRIVATE cudf::cudf) diff --git a/cpp/examples/strings/CMakeLists.txt b/cpp/examples/strings/CMakeLists.txt index a5654870544..47e63f319ad 100644 --- a/cpp/examples/strings/CMakeLists.txt +++ b/cpp/examples/strings/CMakeLists.txt @@ -16,6 +16,9 @@ project( include(../fetch_dependencies.cmake) +include(rapids-cmake) +rapids_cmake_build_type("Release") + list(APPEND CUDF_CUDA_FLAGS --expt-extended-lambda --expt-relaxed-constexpr) add_executable(libcudf_apis libcudf_apis.cpp)