We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8881be commit 0d3d977Copy full SHA for 0d3d977
1 file changed
CMakeLists.txt
@@ -82,6 +82,11 @@ if(BUILD_CUDA)
82
# This needs to be added *before* we try to enable the CUDA language so CMake's compiler check passes.
83
if(MSVC AND MSVC_VERSION VERSION_GREATER_EQUAL 1940)
84
string(APPEND CMAKE_CUDA_FLAGS " --allow-unsupported-compiler")
85
+
86
+ # This is needed to build with VS2022 17.11+ and CUDA < 12.4.
87
+ if (MSVC_VERSION VERSION_GREATER_EQUAL 1941)
88
+ string(APPEND CMAKE_CUDA_FLAGS " -D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH")
89
+ endif()
90
endif()
91
92
enable_language(CUDA) # This will fail if CUDA is not found
0 commit comments