On 10/06/2016 03:46 PM, Stephen Kelly wrote:
> Do you know what CMAKE_EXE_EXPORTS_${lang}_FLAG is? It is added to the 
> linkFlags already for executables with exports.

Ah, that does appear to be the same thing.

> Is CMP0065 adding redundant flags?

The policy only affects executables without exports, so it makes no
difference for anything that is getting CMAKE_EXE_EXPORTS_${lang}_FLAG.
However, the code path where the policy appears was already adding
redundant flags.

I think CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS values in platform
files can be copied over to CMAKE_EXE_EXPORTS_${lang}_FLAG where they
are not set already.  Then the policy's NEW behavior can be changed
to doing nothing because executables with exports will already have
the flags needed.  The only reason to keep the old settings of
CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS around is then to honor the
CMP0065 OLD behavior.

-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to