CMP0065
CMP0065
Do not add flags to export symbols from executables without the ENABLE_EXPORTS
target property.
CMake 3.3 and below, for historical reasons, always linked executables on some platforms with flags like -rdynamic
to export symbols from the executables for use by any plugins they may load via dlopen
. CMake 3.4 and above prefer to do this only for executables that are explicitly marked with the ENABLE_EXPORTS
target property.
The OLD
behavior of this policy is to always use the additional link flags when linking executable