Files
CMake/Tests/RunCMake/target_link_options/LinkOptionsDevice.cu
Marc Chevrier 4248bb452a CUDA: Device linking use now link options
properties LINK_OPTIONS and INTERFACE_LINK_OPTIONS are propagated
to the device link step.

To control which options are selected for normal link and device link steps,
the $<DEVICE_LINK> and $<HOST_LINK> generator expressions can be used.

Fixes: #18265
2020-04-19 15:53:11 +02:00

15 lines
138 B
Plaintext

#include <cuda.h>
#ifdef _WIN32
__declspec(dllexport)
#endif
int simplelib()
{
return 0;
}
int main(void)
{
return simplelib();
}