Disable the C++11 feature detection on Visual Studio

There seems to be a bug in the interaction between CMake and Visual Studio
which floods the 'recent projects' list with the TRY_COMPILE projects.

If in the future this is fixed then it can re-enabled.
This commit is contained in:
Matt Williams 2012-12-26 15:40:59 +00:00
parent 03de39b8dd
commit 9e7bb75687
2 changed files with 7 additions and 3 deletions

View File

@ -69,7 +69,9 @@ if(CMAKE_CXX_COMPILER MATCHES "clang")
ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode
endif() endif()
if(NOT MSVC) #This is causing problems in Visual Studio so disable it for now
INCLUDE(cmake/Modules/CheckCXX11Features.cmake) INCLUDE(cmake/Modules/CheckCXX11Features.cmake)
endif()
ADD_SUBDIRECTORY(library) ADD_SUBDIRECTORY(library)

View File

@ -22,8 +22,10 @@
PROJECT(PolyVoxCore) PROJECT(PolyVoxCore)
if(NOT MSVC)
#Set up the C++11 feature header file based on the CheckCXX11Features script #Set up the C++11 feature header file based on the CheckCXX11Features script
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/include/PolyVoxCore/Impl/CompilerCapabilities.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/PolyVoxCore/Impl/CompilerCapabilities.h) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/include/PolyVoxCore/Impl/CompilerCapabilities.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/PolyVoxCore/Impl/CompilerCapabilities.h)
endif()
#Projects source files #Projects source files
SET(CORE_SRC_FILES SET(CORE_SRC_FILES