Brad King wrote: > On 03/21/2014 11:44 AM, Stephen Kelly wrote: >> Should we try to add first-class support to CMake for building shared >> libraries from CMake code like >> >> add_executable(...) >> >> somehow? There would probably need to be some properties to control it, >> but I wanted to raise the idea. > > Would this be as simple as a platform information file variable that > tells add_executable() to act like add_library() internally?
Perhaps, yes. My current exploratory hack involves modifying CMAKE_CXX_LINK_EXECUTABLE to have content more-like CMAKE_CXX_CREATE_SHARED_LIBRARY. I didn't investigate whether deeper changes within CMake would be needed until the concept was somewhat-accepted. Thanks, Steve. -- 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
