Re: [CMake] How to pass linker options with whitespace?

2019-05-13 Thread Fredrik Orderud
On Mon, May 13, 2019 at 8:40 AM Marc CHEVRIER wrote: > You have to use SHELL token (see documentation of add_link_options) > add_link_options ("SHELL:-s USE_WEBGL2=1" "SHELL:-s FULL_ES2=1") You're of course right. Using "SHELL:" worked perfectly, and solved my problem. Sorry for not reading the

Re: [CMake] How to pass linker options with whitespace?

2019-05-13 Thread Marc CHEVRIER
You have to use SHELL token (see documentation of add_link_options) add_link_options ("SHELL:-s USE_WEBGL2=1"  "SHELL:-s FULL_ES2=1") Le 12 mai 2019 à 21:14 +0200, Fredrik Orderud , a écrit : > I'm struggling to figure out how to pass "-s USE_WEBGL2=1 -s > FULL_ES2=1" (without the quotes) as

[CMake] How to pass linker options with whitespace?

2019-05-12 Thread Fredrik Orderud
I'm struggling to figure out how to pass "-s USE_WEBGL2=1 -s FULL_ES2=1" (without the quotes) as linker options to _all_ CMake targets when using Emscripten targeting WebAssembly. I've already tried add_link_options(-s USE_WEBGL2=1 -s FULL_ES2=1), but that caused the second "-s" to disappear