[CMake] Support for SWIG and Node.js
Michael Ellery
mellery451 at gmail.com
Wed Sep 27 11:18:53 EDT 2017
> On Sep 26, 2017, at 10:39 PM, Yegor Yefremov <yegor_sub1 at visionsystems.de> wrote:
>
> I've seen, that CMake has updated UseSWIG in version 3.8.x. But it doesn't seem to support the following use case:
>
> swig -c++ -javascript -node interface.i src.c
>
> I.e. I can define "-c++" via set_property(SOURCE interface.i PROPERTY CPLUSPLUS ON), but how to specify "-node" or "-jsc" or "-v8"?
>
> Best regards,
> Yegor
Have you tried setting CMAKE_SWIG_FLAGS ?
https://gitlab.kitware.com/cmake/cmake/blob/master/Modules/UseSWIG.cmake#L41
-Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170927/08f49a24/attachment.sig>
More information about the CMake
mailing list