Chuck Atkins wrote: > I've implemented a new policy, CMP0065, to restrict the addition of > CMAKE_SHARED_LIBRARY_LINK_<LANG>_FLAGS to executables to only when the > ENABLE_EXPORTS target property is set. This should allow us to preserve > backwards compatibility in the places it breaks existing binaries but > allow us to remove it by default for newer projects. > > See stage/restrict-shlib-link-flags-to-enable-exports > > The motivator behind this is to get closer to easily supporting fully > static binaries.. Any feedback would be appreciated.
You add an [ENABLE_EXPORTS] keyword to try_compile. Maybe [TARGET_PROPERTIES <prop1> <value1> [<prop1> <value1>]... ] makes sense instead? That would allow setting ANDROID_API, WIN32_EXECUTABLE etc. 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/mailman/listinfo/cmake-developers