On 03/26/2014 09:16 AM, Stephen Kelly wrote:
> My current exploratory hack involves modifying CMAKE_CXX_LINK_EXECUTABLE to 
> have content more-like CMAKE_CXX_CREATE_SHARED_LIBRARY.

The VS and Xcode generators do not use those variables, but could be
taught similar changes if this were to be a first-class feature.

> I didn't investigate whether deeper changes within CMake would be needed 
> until the concept was somewhat-accepted.

Actually having add_executable create something besides cmTarget::EXECUTABLE
could cause other logic changes, even in project code that tests target
types.  Therefore we should probably delay the exe->lib mapping to be
just in the actual link step as above.

-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/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to