Merge topic 'cpack-innosetup-linux'
[kiteware-cmake.git] / Modules / CMakeCUDACompilerABI.cu
blobb04d0ec20f4a71d2ddc26228036d4fdd8aa755c1
1 #ifndef __CUDACC__
2 #  error "A C or C++ compiler has been selected for CUDA"
3 #endif
5 #include "CMakeCompilerABI.h"
6 #include "CMakeCompilerCUDAArch.h"
8 int main(int argc, char* argv[])
10   int require = 0;
11   require += info_sizeof_dptr[argc];
12   require += info_byte_order_big_endian[argc];
13   require += info_byte_order_little_endian[argc];
14 #if defined(ABI_ID)
15   require += info_abi[argc];
16 #endif
17   static_cast<void>(argv);
19   if (!cmakeCompilerCUDAArch()) {
20     // Convince the compiler that the non-zero return value depends
21     // on the info strings so they are not optimized out.
22     return require ? -1 : 1;
23   }
25   return 0;