[CMake] How to specify $1 for compiler?

Jed Brown jed at 59A2.org
Tue Feb 8 14:12:57 EST 2011


On Mon, Feb 7, 2011 at 23:35, Jed Brown <jed at 59a2.org> wrote:

> On Fri, Feb 4, 2011 at 01:31, Michael Hertling <mhertling at online.de>wrote:
>
>> With a Makefile generator, you might use a RULE_LAUNCH_COMPILE property:
>>
>> SET_TARGET_PROPERTIES(<target> PROPERTIES RULE_LAUNCH_COMPILE "win32fe")
>>
>
> Thanks for these suggestions. I went with this one, but I'll try the other
> if someone complains (win32fe implies cygwin, I don't know if native Visual
> Studio builds make sense in that context).
>

Hmm, although the Makefile "would work", the compiler tests do not succeed
because they don't use these properties. Where do I have to munge
CMAKE_<LANG>_COMPILE_OBJECT to have that version used when testing whether a
compiler works?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110208/b6997b00/attachment.htm>


More information about the CMake mailing list