NVIDIA-DetermineCompiler.cmake 602 B

1234567891011121314151617
  1. set(_compiler_id_pp_test "defined(__NVCC__)")
  2. set(_compiler_id_version_compute "
  3. # define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__CUDACC_VER_MAJOR__)
  4. # define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__CUDACC_VER_MINOR__)
  5. # define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__CUDACC_VER_BUILD__)
  6. # if defined(_MSC_VER)
  7. /* _MSC_VER = VVRR */
  8. # define @PREFIX@SIMULATE_VERSION_MAJOR @MACRO_DEC@(_MSC_VER / 100)
  9. # define @PREFIX@SIMULATE_VERSION_MINOR @MACRO_DEC@(_MSC_VER % 100)
  10. # endif")
  11. set(_compiler_id_simulate "
  12. # if defined(_MSC_VER)
  13. # define @PREFIX@SIMULATE_ID \"MSVC\"
  14. # endif")