on-internet
← Community

In CLion, can I set my CMAKE_CUDA_HOST_COMPILER to the CLion toolchain C++ compiler?

Stack Overflow ·

The CLion IDE supports toolchains with different compilers; and also, CMake build types like RelWithDebugInfo, Release etc. My question: Is there a way to set the CMAKE_CUDA_HOST_COMPILER value, to automatically track the chosen toolchain's compiler? Other than manually setting it? Is there some variable which CLion would plug with the toolchain's C++ compiler, or a similar mechanism? I'm using CLion 2026.2 in case this matters.

Comments

Sign in or sign up to comment and upvote.

No comments yet.