Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.5
-
None
-
CUDA Toolkit 10.0
GCC 6.5.0
Ubuntu 18.04
-
d5608ca43756ed62678e60215da71827dd26a900 (qt/qtbase/5.14)
Description
Qt5CoreConfigExtras.cmake adds -fPIC to the INTERFACE_COMPILE_OPTIONS for the Qt5::Core imported target. This should be in a conditional generator expression so that it only applies to the C and CXX languages. Otherwise -fPIC will get added to CUDA compilers like nvcc which (annoyingly) choke on this. Something like:
$<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-fPIC>