Re: [CMake] CMake with two C++ compilers

2019-05-10 Thread Robert Maynard via CMake
Currently we don't provide the compiler id and version for the CUDA host compiler. If you are interested in having this information can you please create an issue on the cmake gitlab: https://gitlab.kitware.com/cmake/cmake On Fri, May 10, 2019 at 12:09 PM JR Cary wrote: > > Thanks, Chuck. > > I

Re: [CMake] CMake with two C++ compilers

2019-05-10 Thread JR Cary
Thanks, Chuck. I was not clear on my question, which is:  When I specify the two compilers, how do I get, e.g., CMAKE_CUDA_HOST_COMPILER_ID and CMAKE_CUDA_HOST_COMPILER_VERSION? I need these to determine consistency between the CUDA version and the host compiler version, so that I can disab

Re: [CMake] CMake with two C++ compilers

2019-05-10 Thread Chuck Atkins via CMake
Hi John, Two different compilers in the same project for the same language is messy, but in your case it's directly supproted as a special case for cuda using the CMAKE_CUDA_HOST_COMPILER CMake variable or the CUDAHOSTCXX environment variable. -- Chuck Atkins Staff R&D Engineer, Scientific

Re: [CMake] CMake with two C++ compilers

2019-05-08 Thread Sergei Nikulov
ср, 8 мая 2019 г. в 14:27, JR Cary : > > Is there a standard way to deal with 2 C++ compilers? Getting both > there versions, etc.? > > I need one compiler for compiling ordinary C++ code and a different > one to use as the host compiler for CUDA. > > Thx..John Cary Here is the exact answer t

Re: [CMake] CMake with two C++ compilers

2019-05-08 Thread Hex
set the compiler for each build: set(COMPILER /opt/gcc/bin) cmake_force_c_compiler( "${COMPILER}gcc" GNU) cmake_force_cxx_compiler("${COMPILER}g++" GNU) -- Sent from: http://cmake.3232098.n2.nabble.com/ -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] CMake with two C++ compilers

2019-05-08 Thread JR Cary
Is there a standard way to deal with 2 C++ compilers?  Getting both there versions, etc.? I need one compiler for compiling ordinary C++ code and a different one to use as the host compiler for CUDA. Thx..John Cary -- Powered by www.kitware.com Please keep messages on-topic and check the C