Files
CMake/Tests/CudaOnly/SeparateCompilationTargetObjects/main.cu
Robert Maynard cd984261e1 CUDA: Device linking now uses TARGET_OBJECTS content
Due to an oversight in cmLinkLineDeviceComputer object
files did not get propagate to the device linking phase
when given via the `$<TARGET_OBJECTS>` generator expression.
2023-09-25 08:50:38 -04:00

17 lines
209 B
Plaintext

// main.cu
#include <iostream>
#ifdef _WIN32
# define IMPORT __declspec(dllimport)
#else
# define IMPORT
#endif
IMPORT int foo();
IMPORT int bar();
int main(int argc, char**)
{
return foo() && bar();
}