[cmake-developers] [CMake 0013961]: CMAKE_GENERATOR_TOOLSET error for VS 2012
Mantis Bug Tracker
mantis at public.kitware.com
Wed Feb 27 18:10:58 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://cmake.org/Bug/view.php?id=13961
======================================================================
Reported By: skislins
Assigned To:
======================================================================
Project: CMake
Issue ID: 13961
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-02-27 18:10 EST
Last Modified: 2013-02-27 18:10 EST
======================================================================
Summary: CMAKE_GENERATOR_TOOLSET error for VS 2012
Description:
Especially when using VS 2012, the ability to choose a platform toolset is very
import (e.g., compiling for WinXP, or using compiler updates for C++11
features).
In the current developer branch, CMAKE_GENERATOR_TOOLSET can be found for that
purpose and I guess it will be included in CMake 2.8.11. However, it causes an
error during cache deletion which makes it necessary to delete the build
directory and, in addition, to restart CMake GUI.
Steps to Reproduce:
# PREREQUISITE: Install Visual C++ Compiler November 2012 CTP.
#
# (1) Open CMake GUI.
# (2) Configure with Visual Studio 11 (Win64) generator.
# (3) Compiler identification is MSVC 17.0.51106.1.
# (4) Delete cache.
# (5) Configure again with Visual Studio 11 (Win64) generator.
# (6) Compiler identification is MSVC 17.0.51025.0 now.
# (7) Check for working C compiler fails!
#
# IMPORTANT: Fails until the build directory is deleted or changed AND
# CMake GUI is restarted!
cmake_minimum_required(VERSION 2.8.10.20130220)
project(Test)
if(NOT MSVC_VERSION OR MSVC_VERSION LESS 1700)
message(FATAL_ERROR "Select Visual Studio 11 (Win64) generator!")
endif()
# Enable C++11 features of the newest compiler
set(CMAKE_GENERATOR_TOOLSET "v120_CTP_Nov2012" CACHE STRING "" FORCE)
Additional Information:
Compiler updates are an important new strategy of MS to add new C++11 features
step-by-step to VS 2012. Hence, please don't be too tentative regarding first
class support/integration of this feature into CMake.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-02-27 18:10 skislins New Issue
======================================================================
More information about the cmake-developers
mailing list