forked from NVIDIA/cub
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Catch2 CMake to reuse existing build system.
- Loading branch information
1 parent
01a2388
commit eb08906
Showing
4 changed files
with
129 additions
and
214 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,14 +52,6 @@ option(CUB_ENABLE_HEADER_TESTING "Test that all public headers compile." ON) | |
option(CUB_ENABLE_TESTING "Build CUB testing suite." ON) | ||
option(CUB_ENABLE_EXAMPLES "Build CUB examples." ON) | ||
|
||
option(CUB_ENABLE_CT_PROFILING "Enable compilation time profiling" OFF) | ||
|
||
if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID}") | ||
# NVBugs 200770766 | ||
set(CUB_SEPARATE_CATCH2 ON) | ||
else () | ||
option(CUB_SEPARATE_CATCH2 "Build each catch2 as a separate executable." OFF) | ||
endif () | ||
# This is needed for NVCXX QA, which requires a static set of executable names. | ||
# Only a single dialect may be enabled when this is off. | ||
option(CUB_ENABLE_CPP_DIALECT_IN_NAMES | ||
|
@@ -121,14 +113,6 @@ if (CUB_ENABLE_TESTING OR CUB_ENABLE_EXAMPLES) | |
endif() | ||
|
||
if (CUB_ENABLE_TESTING) | ||
include(cmake/CPM.cmake) | ||
CPMAddPackage("gh:catchorg/[email protected]") | ||
|
||
option(METAL_BUILD_DOC OFF) | ||
option(METAL_BUILD_EXAMPLES OFF) | ||
option(METAL_BUILD_TESTS OFF) | ||
CPMAddPackage("gh:brunocodutra/[email protected]") | ||
|
||
add_subdirectory(test) | ||
endif() | ||
|
||
|
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
Oops, something went wrong.