Better defaults for compiler capabilities.
This commit is contained in:
parent
9273094ebd
commit
0c78d97ba5
@ -1,20 +1,23 @@
|
|||||||
/*
|
/*
|
||||||
* This file provides the default compiler capabilities for for Visual Studio.
|
* This file describes the capabilities of the C++ compiler and is used to determine which features to enable in PolyVox.
|
||||||
* On other compilers CMake will detect which features are available and create
|
* It assumes that if the compiler is from VS2008 or earlier then no C++11 is present, otherwise it assumes full support
|
||||||
* a file like this.
|
* is present.
|
||||||
*
|
*
|
||||||
* To Enable these features in Visual Studio, define the variables in this file.
|
* Not that this file is usually overwritten by CMake which does careful tests of the true compiler capabilities. However,
|
||||||
|
* we provide this default file so that CMake is not actually required for users of PolyVox and they can instead just drop
|
||||||
|
* PolyVox code into their project/makefile if they prefer.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __PolyVox_CompilerCapabilities_H__
|
#ifndef __PolyVox_CompilerCapabilities_H__
|
||||||
#define __PolyVox_CompilerCapabilities_H__
|
#define __PolyVox_CompilerCapabilities_H__
|
||||||
|
|
||||||
//#define HAS_CXX11_CONSTEXPR
|
// If we are not using Visual Studio (or we are but it
|
||||||
|
// is a recent version) then assume support for these.
|
||||||
//#define HAS_CXX11_STATIC_ASSERT
|
#if !defined(_MSC_VER) || (_MSC_VER >= 1600)
|
||||||
|
#define HAS_CXX11_CONSTEXPR
|
||||||
//#define HAS_CXX11_CSTDINT_H
|
#define HAS_CXX11_STATIC_ASSERT
|
||||||
|
#define HAS_CXX11_CSTDINT_H
|
||||||
#define HAS_CXX11_SHARED_PTR
|
#define HAS_CXX11_SHARED_PTR
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user