mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 23:19:58 -06:00
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.
17 lines
209 B
Plaintext
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();
|
|
}
|