Hi,
I use the latest options to integrate CUDA and CPP code in one library by setting enable_language(CUDA). In my project, I apply typical options supported by CMAKE such as POSITION_INDEPENDENT_CODE which is nicely integrated in CMAKE.
However, I also use some compiler specific flags such as “-Wno-psabi”. These flags are known by GCC but lead to an error message when invoking the NVCC.
My question: how am I suppose to provide flags for GCC which are not in use by the NVCC? It seems that NVCC is always using the same flags as specific in CMAKE_CXX_FLAGS.
Thank you and best regards
Hauke