[CMake] Coverage tests with gcov under Linux
Bill Hoffman
bill.hoffman at kitware.com
Fri May 9 21:54:45 EDT 2008
John Doe wrote:
> Since this is the fault of cmake, you should perhaps have it set the
> proper locale when the program first begins. I have never done this,
> but a google search reveals stuff like:
>
> std::setlocale(LC_ALL, "En_US");
> std::fscanf(priceFile,"%lf",&price);
> // convert $ to DM according to the current exchange rate
> std::setlocale(LC_ALL,"De_DE");
> std::strfmon(buf,SZ,"%n",price);
> std::fprintf(invoiceFile,"%s",buf);
>
I don't see how that would help me at all? CMake is parsing the output
of another program. If the LC_ALL works, the thing to do would be to
set LC_ALL to POSIX before ctest runs gcov.
-Bill
More information about the CMake
mailing list