Re: [CMake] Empty ERROR_VARIABLE in execute_process

2016-05-23 Thread Roman Wüger
As an addition: If I run "C:\Qt\5.6\msvc2015\bin\qmllint.exe test.qml 1> stdout.txt 2> stderr.txt" Then the error is written to stderr.txt. Regards Roman > Am 23.05.2016 um 09:25 schrieb Roman Wüger : > > Hello, > > when I run qmllint from the command line to test an error I get: > > C:\Tes

[CMake] Empty ERROR_VARIABLE in execute_process

2016-05-23 Thread Roman Wüger
Hello, when I run qmllint from the command line to test an error I get: C:\Tests>C:\Qt\5.6\msvc2015\bin\qmllint.exe test.qml test.qml:1 : Syntax error C:\Tests>echo %ERRORLEVEL% -1 C:\Tests> If I call this from a CMake script execute_process(COMMAND C:/Qt/5.6/msvc2015/bin/qmllint.exe