[CMake] try_run removes semicolons from output?

Dominik Szczerba dominik at itis.ethz.ch
Thu Feb 3 11:32:13 EST 2011


Still not sure bug or not, but trying things out blind I found a
workaround: enclose contents of RUN_OUTPUT_VARIABLE in quotes.

Dominik

On Thu, Feb 3, 2011 at 5:24 PM, Dominik Szczerba <dominik at itis.ethz.ch> wrote:
> I am using try_run to generate an include file by a single program
> containing lines like:
>
> printf ("static double foo = %f;\n", foo);
>
> To my great surprise, RUN_OUTPUT_VARIABLE contains all the lines as
> expected but without trailing ";" symbols. There is nothing about this
> unexpected behavior in the description of this command in cmake. Did I
> miss something in the documentation or I should rather file a bug?
>
> Regards,
> Dominik
>


More information about the CMake mailing list