Re: [CMake] Support for SWIG and Node.js

2017-09-28 Thread Yegor Yefremov
On 27.09.2017 17:18, Michael Ellery wrote: >> On Sep 26, 2017, at 10:39 PM, Yegor Yefremov >> 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 de

Re: [CMake] Support for SWIG and Node.js

2017-09-27 Thread Michael Ellery
> On Sep 26, 2017, at 10:39 PM, Yegor Yefremov > 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

Re: [CMake] Support for SWIG and Node.js

2017-09-27 Thread Bruce Jones
I don't have a solution for you, but I agree that this functionality would be incredibly useful! On Wed, 27 Sep 2017 at 01:39 Yegor Yefremov 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 -no

[CMake] Support for SWIG and Node.js

2017-09-26 Thread Yegor Yefremov
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"? B