Thanks!
On Thu, Aug 7, 2014 at 7:55 AM, David Cole <[email protected]> wrote: > Specifically, for the OBJECT library feature, I figured out what > version of CMake introduced it like this: > > gitk -- Tests/ObjectLibrary/CMakeLists.txt > > leads to finding this first commit of that file: 69d3d183 [1] > > gitk 69d3d183 > > leads to b87d7a60 [2] (4 parent commits up) which introduced the > feature itself. Then, > > git describe --contains b87d7a60 > > yields: > > v2.8.8~29^2~15 > > So.... OBJECT libraries were introduced in CMake v2.8.8. Also, in all > the gitk views for these commits, it tells you "Follows: v2.8.7" and > "Precedes: v2.8.8". > > > You could therefore write code like: > > if (${CMAKE_VERSION} VERSION_LESS 2.8.8) > # avoid OBJECT libraries > else() > # ok to use OBJECT libraries > endif() > > > HTH, > David C. > > > [1] http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=69d3d183 > [2] http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b87d7a60 > > > -- Cheers, Leif
-- 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
