mirror of
https://github.com/rapidsai/cudf.git
synced 2021-11-08 00:24:56 +03:00
This PR uses cmake-format to reformat all CMake files in the repository and addresses higher-level issues raised by running cmake-lint. It enables both cmake-format and cmake-lint in CI by pulling the cmake-format-rapids-cmake.json file from the [rapids-cmake](https://github.com/rapidsai/rapids-cmake) repo's main branch on demand. Running CI on CMake will ensure consistent style going forward. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Jason Lowe (https://github.com/jlowe) - Robert Maynard (https://github.com/robertmaynard) - AJ Schmidt (https://github.com/ajschmidt8) - Mark Harris (https://github.com/harrism) URL: https://github.com/rapidsai/cudf/pull/9570
31 lines
1.2 KiB
CMake
31 lines
1.2 KiB
CMake
# =============================================================================
|
|
# Copyright (c) 2020-2021, NVIDIA CORPORATION.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
# in compliance with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
# or implied. See the License for the specific language governing permissions and limitations under
|
|
# the License.
|
|
# =============================================================================
|
|
|
|
# This function finds libcudacxx and sets any additional necessary environment variables.
|
|
function(find_and_configure_libcudacxx)
|
|
include(${rapids-cmake-dir}/cpm/libcudacxx.cmake)
|
|
|
|
rapids_cpm_libcudacxx(
|
|
BUILD_EXPORT_SET cudf-exports INSTALL_EXPORT_SET cudf-exports PATCH_COMMAND patch
|
|
--reject-file=- -p1 -N < ${CUDF_SOURCE_DIR}/cmake/libcudacxx.patch || true
|
|
)
|
|
|
|
set(LIBCUDACXX_INCLUDE_DIR
|
|
"${libcudacxx_SOURCE_DIR}/include"
|
|
PARENT_SCOPE
|
|
)
|
|
endfunction()
|
|
|
|
find_and_configure_libcudacxx()
|