> Thought this came out weeks ago... and I would miss a chance to comment.
>
> Watcom support is almost working, the new test version code is...
>
> EXECUTE_PROCESS(COMMAND ${CMAKE_TEST_COMPILER}
> -q -pc \"${testWatcomVersionFile}\"
> OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT
> RESULT_VARIABLE CMAKE_COMPILER_RETURN
> )
>
> which looks OK. But if I change it to
> EXECUTE_PROCESS(COMMAND echo ${CMAKE_TEST_COMPILER}
> -q -pc \"${testWatcomVersionFile}\"
> OUTPUT_VARIABLE CMAKE_COMPILER_OUTPUT
> RESULT_VARIABLE CMAKE_COMPILER_RETURN
> )
>
>
> then the command looks like
>
> e:/tools/watcom/binnt/wcl386.exe -q -pc
> \e:\tools\unix\cmake\share\cmake-2.8\Modules\CMakeTestWatcomVersion.c"
>
>
> (as is set in CMAKE_COMPILER_OUTPUT) but anyhow...
>
> I don't know where the extra \ before the e:\ is coming from.
I think I know where it is from, but I have no idea why:
> -q -pc \"${testWatcomVersionFile}\"
^ ^
These are the things that surround your variable value. Something got
screwed up here with the quotes as it seems.
Eike
_______________________________________________
cmake-developers mailing list
[email protected]
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers