Fix CUDA library support.

Fixed an issue where CMH_PREPARE_CUDA_COMPILER would not update the
CMH_CUDA_MODULE_NAMES variable when called from a module that did not
use the cmh_add_*_module() convenience macro.