Skip to content

Commit 78d689b

Browse files
committed
Clean up the CUB test CMake file.
It's grown quite messy over years of organic growth. Sort it out a bit.
1 parent 17b6ca2 commit 78d689b

File tree

3 files changed

+336
-331
lines changed

3 files changed

+336
-331
lines changed

cub/cmake/CubCudaConfig.cmake

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,16 @@ option(
1414
"Enable separable compilation on all targets that support it."
1515
OFF
1616
)
17+
18+
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
19+
if (CUB_ENABLE_RDC_TESTS)
20+
if ("${CMAKE_VERSION}" VERSION_LESS 3.27.5)
21+
# https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8794
22+
message(
23+
WARNING
24+
"CMake 3.27.5 or newer is required to enable RDC tests in Visual Studio."
25+
)
26+
cmake_minimum_required(VERSION 3.27.5)
27+
endif()
28+
endif()
29+
endif()

0 commit comments

Comments
 (0)