target_link_properties and target_compile_properties instead, and properly split compilation flags from link flags.
Properly check property by property which one should be set as INTERFACE, PUBLIC, or PRIVATE. For example after https://github.com/jupyter-xeus/xeus/pull/319/files, the ASYNCIFY and ASYNCIFY_IMPORTS appear to be required for xeus-lua even though it concerns a function defined in xeus.
Currently, Wasm compilation and link flags are set globally in https://github.com/jupyter-xeus/xeus/blob/master/cmake/XeusEmscriptenWasmFlags.cmake.
We should probably use
target_link_properties
andtarget_compile_properties
instead, and properly split compilation flags from link flags.ASYNCIFY
andASYNCIFY_IMPORTS
appear to be required for xeus-lua even though it concerns a function defined in xeus.