mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-19 21:50:39 -06:00
On Windows with MSVC-like host compilers we must honor the standard libraries chosen by the `Platform/Windows-MSVC` module. Otherwise C code linked into the CUDA binary that expects to have these libraries available may not link.
15 lines
219 B
C
15 lines
219 B
C
extern int use_cuda(void);
|
|
|
|
#ifdef _WIN32
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
int main()
|
|
{
|
|
#ifdef _WIN32
|
|
/* Use an API that requires CMake's "standard" C libraries. */
|
|
GetOpenFileName(NULL);
|
|
#endif
|
|
return use_cuda();
|
|
}
|