[CMake] JWASM support

Dmitry Bely dmitry.bely at gmail.com
Fri Feb 6 07:03:33 EST 2009


On Tue, Feb 3, 2009 at 11:22 PM, Alexander Neundorf
<a.neundorf-work at gmx.net> wrote:
> On Tuesday 03 February 2009, Hendrik Sattler wrote:
>> Dmitry Bely schrieb:
>> >> If you use a toolchain file because you are cross-compiling, then you do
>> >> not have this problem.
>> >
>> > I would like to use the same CMakeLists.txt for native Win32 and
>> > cross-compiled Linux build. How to select the desired assembler then?
>>
>> Just like you select the C compiler in your toolchain file:
>> set ( CMAKE_ASM_MASM_COMPILER /path/to/masm/or/jwasm )
>
> Or set the ASM_MASM environment variable to the assembler you want to use
> before calling cmake (the same way as you can set CC or CXX before running
> cmake).

It's not enough: jwasm requires different options. Also redefine
CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT? Not very convenient...

- Dmitry Bely


More information about the CMake mailing list