We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8070847 commit bd688c8Copy full SHA for bd688c8
1 file changed
src/Cuda.cmake
@@ -38,4 +38,11 @@ macro(target_link_cuda target)
38
# so that the static cuda runtime can find it at runtime.
39
set_property(TARGET ${target} PROPERTY BUILD_RPATH ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})
40
endif()
41
+
42
+ if(WIN32 AND "$ENV{VSCMD_VER}" STREQUAL "")
43
+ message(
44
+ WARNING
45
+ "Compiling Cuda on Windows outside the Visual Studio Commant prompt or without running `vcvarsall.bat x64` probably fails"
46
+ )
47
+ endif()
48
endmacro()
0 commit comments