[CMake] CMakeDetermineVSServicePack (was: CMake 3.0-rc3 now ready for testing)

Brad King brad.king at kitware.com
Wed Apr 9 13:15:02 EDT 2014


On 04/09/2014 07:39 AM, Mourad Boufarguine wrote:
> CMake Error at D:/Program Files (x86)/CMake/share/cmake-3.0/Modules/CMakeDetermineVSServicePack.cmake:140 (list):
> list index: 3 out of range (-3, 2)
[snip]
> content of the _cl_version variable and it gave me 17.00.61030
> so there is no 4th component in the version number.

Did this work with a previous version of CMake?  It looks like this
problem has always existed but did not manifest because normally there
are four components in the output.

Please print and report the content of "_output" so we can see why it
does not match as expected and fix the module accordingly.

Meanwhile, Eigen should be taught to use CMAKE_<LANG>_COMPILER_VERSION which
has superseded CMakeDetermineVSServicePack as mentioned in the documentation:

 http://www.cmake.org/cmake/help/v3.0/module/CMakeDetermineVSServicePack.html
 http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_LANG_COMPILER_VERSION.html

CMAKE_<LANG>_COMPILER_VERSION is available since CMake 2.8.8.

-Brad



More information about the CMake mailing list