Re: [CMake] Custom message if target fails

2015-11-14 Thread Attila Krasznahorkay
nbuffer > make -j8 -k". > -- > Daniel Schepler > > From: CMake [cmake-boun...@cmake.org] on behalf of Daniel Wirtz > [daniel.wi...@simtech.uni-stuttgart.de] > Sent: Thursday, November 12, 2015 2:05 AM > To: cmake@cmake.org > Subject: Re: [CMake] Cus

Re: [CMake] Custom message if target fails

2015-11-12 Thread Daniel Schepler
Daniel Schepler From: CMake [cmake-boun...@cmake.org] on behalf of Daniel Wirtz [daniel.wi...@simtech.uni-stuttgart.de] Sent: Thursday, November 12, 2015 2:05 AM To: cmake@cmake.org Subject: Re: [CMake] Custom message if target fails Hey, neat idea, i've tried and it works (i

Re: [CMake] Custom message if target fails

2015-11-12 Thread Daniel Wirtz
Hey, neat idea, i've tried and it works (i have custom targets there). However, the "nice" colored build text output of such a solution gets lost completely (pipes etc); are there any alternative ideas/solutions? thanks again! Dr. Daniel Wirtz Dipl. Math. Dipl. Inf. SRC SimTech Pfaffenwaldrin

Re: [CMake] Custom message if target fails

2015-11-12 Thread Nils Gladitz
On 11/12/2015 09:54 AM, Daniel Wirtz wrote: Dear all, i've been thinking on this for a while but i can't seem to get my head around how to solve this. The task is simple: How can i display a custom error message if a target fails to build for whatever reason? - cmake .. - make - - below the

[CMake] Custom message if target fails

2015-11-12 Thread Daniel Wirtz
Dear all, i've been thinking on this for a while but i can't seem to get my head around how to solve this. The task is simple: How can i display a custom error message if a target fails to build for whatever reason? - cmake .. - make - - below the (compile-tool dependent error output) i'd lik