Ninja: IMPLIB is created for executable even if `ENABLE_EXPORTS` is set to OFF
The documentation on ENABLE_EXPORTS says:
Specify whether an executable exports symbols for loadable modules. [...] On Windows-based systems (including Cygwin) an "import library" is created along with the executable to list the exported symbols. Loadable modules link to the import library to get the symbols.
Despite setting
set_target_properties(MyExecutable PROPERTIES ENABLE_EXPORTS OFF)
, MyExecutable.lib
gets created.
Looking at the .ninja
files, I can see that TARGET_IMPLIB
is specified regardless of this setting.
Is this the expected behaviour? Does the property only handle linking at the CMake-layer?