When generating native symbols export files, these files are generated in CMAKE_CURRENT_BINARY_DIR. However, on multi-configuration build-systems, such as Xcode and MSVC, this folder is shared between all configurations.
On this case, switching configuration may make the build system think the file is up-to-date, and use the file from the other configuration (resulting in link error if referencing symbol no longer existing because of inlining, or in non-exported symbols in the reverse case).
This patch generate the files in the CMAKE_CFG_INTDIR subfolder, to have a different file for each configuration.