-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable cuco install rules when no INSTALL_EXPORT_SET
- Loading branch information
1 parent
374b530
commit 2075214
Showing
3 changed files
with
39 additions
and
2 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
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,33 @@ | ||
#============================================================================= | ||
# Copyright (c) 2022, 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/cuco.cmake) | ||
include(${rapids-cmake-dir}/cpm/libcudacxx.cmake) | ||
|
||
rapids_cpm_init() | ||
|
||
rapids_cpm_libcudacxx(BUILD_EXPORT_SET test_export_set) | ||
# Verify that cuco doesn't fail to generate when | ||
# it encounters a libcudacxx that has has no INSTALL rules | ||
rapids_cpm_cuco(BUILD_EXPORT_SET test_export_set) | ||
|
||
get_target_property(packages rapids_export_build_test_export_set PACKAGE_NAMES) | ||
if(NOT libcudacxx IN_LIST packages) | ||
message(FATAL_ERROR "rapids_cpm_cuco failed to record cuco needs to be exported") | ||
endif() | ||
if(NOT cuco IN_LIST packages) | ||
message(FATAL_ERROR "rapids_cpm_cuco failed to record cuco needs to be exported") | ||
endif() |