Fix parsing of version for nvhpc

When parsing version of compiler, a bug has been encountered with nvhpc as the first line is empty and that the cmake function only parse the first line.

So this patch strip whitespace from the beginning of the version string.

$ nvc++ --version

nvc++ 21.2-0 LLVM 64-bit target on x86-64 Linux -tp skylake
NVIDIA Compilers and Tools
Copyright (c) 2020, NVIDIA CORPORATION.  All rights reserved.

Merge request reports

Loading