forked from rapidsai/rapids-cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new test, doesn't include the necessary new logic yet
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#============================================================================= | ||
# Copyright (c) 2021-2023, 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. | ||
#============================================================================= | ||
include(${rapids-cmake-dir}/cpm/init.cmake) | ||
include(${rapids-cmake-dir}/cpm/nvcomp.cmake) | ||
|
||
rapids_cpm_init() | ||
|
||
if(TARGET nvcomp::nvcomp) | ||
message(FATAL_ERROR "Expected nvcomp::nvcomp not to exist") | ||
endif() | ||
|
||
rapids_cpm_nvcomp(USE_PROPRIETARY_BINARY ON) | ||
|
||
if(NOT nvcomp_proprietary_binary) | ||
message(FATAL_ERROR "Expected nvcomp::nvcomp target to exist") | ||
endif() | ||
|
||
# Make sure CUDA::cudart_static isn't in the interface link lines | ||
get_target_property(libs nvcomp::nvcomp INTERFACE_LINK_LIBRARIES) | ||
|
||
if("CUDA::cudart_static" IN_LIST libs) | ||
message(FATAL_ERROR "nvcomp::nvcomp shouldn't link to CUDA::cudart_static") | ||
endif() | ||
|
||
# Make sure we can be called multiple times | ||
rapids_cpm_nvcomp() |