diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-11-22 17:42:35 (GMT) |
---|---|---|
committer | Robert Maynard <rmaynard@nvidia.com> | 2022-11-23 14:27:42 (GMT) |
commit | 54d80440840edd14a0c9f7324525dc0b0f4c3808 (patch) | |
tree | bd1d03f941f625cbe0b5f80fca031591d0637468 /Tests/Cuda/SharedRuntimePlusToolkit/main.cpp | |
parent | 9278ae6f1b80e2694300b5eed2d3dde6cc43b167 (diff) | |
download | CMake-54d80440840edd14a0c9f7324525dc0b0f4c3808.zip CMake-54d80440840edd14a0c9f7324525dc0b0f4c3808.tar.gz CMake-54d80440840edd14a0c9f7324525dc0b0f4c3808.tar.bz2 |
Tests: Don't presume that Linux CUDA Toolkits provide static libs
Diffstat (limited to 'Tests/Cuda/SharedRuntimePlusToolkit/main.cpp')
-rw-r--r-- | Tests/Cuda/SharedRuntimePlusToolkit/main.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Tests/Cuda/SharedRuntimePlusToolkit/main.cpp b/Tests/Cuda/SharedRuntimePlusToolkit/main.cpp index 2a4da22..d958c3a 100644 --- a/Tests/Cuda/SharedRuntimePlusToolkit/main.cpp +++ b/Tests/Cuda/SharedRuntimePlusToolkit/main.cpp @@ -1,19 +1,28 @@ #ifdef _WIN32 # define IMPORT __declspec(dllimport) +#else +# define IMPORT +#endif + IMPORT int shared_version(); + +#ifdef HAS_STATIC_VERSION +IMPORT int static_version(); +#else int static_version() { return 0; } +#endif + +#ifdef HAS_MIXED_VERSION +IMPORT int mixed_version(); +#else int mixed_version() { return 0; } -#else -int shared_version(); -int static_version(); -int mixed_version(); #endif int main() |