[CMake] Need to prepend compiler with static analysis tool
Alexander Neundorf
a.neundorf-work at gmx.net
Wed May 23 17:14:49 EDT 2012
On Wednesday 23 May 2012, jrosensw wrote:
> Hey all,
>
> I'm trying to integrate insure++ with my cmake workspace. The way
> insure works is that you prepend the compiler with the insure executable.
> For example "/usr/bin/insure /usr/bin/g++ -o test test.cpp". I've tried
> to overrid CMAKE_CXX_COMPILER with these two executables, but it doesn't
> seem like CMAKE likes this way. I've also tried overriding CXX before
> running "cmake" with this.
>
> Can someone please tell me how to make this work? Seems like it should
> be simple enough, but I'm not finding the answer :-).
Something like the following shoduld work:
$ CXX="/usr/bin/insure /usr/bin/g++" cmake ..
(on a fresh build tree)
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120523/007cc32e/attachment.htm>
More information about the CMake
mailing list