Moved OSG_USE_DEPRECATED_API from include/osg/Export to Cmake controlled include/osg/Config
This commit is contained in:
parent
8c54a49319
commit
20ac472d1f
@ -442,6 +442,8 @@ ENDIF(WIN32 AND NOT ANDROID)
|
|||||||
|
|
||||||
OPTION(OSG_NOTIFY_DISABLED "Set to ON to build OpenSceneGraph with the notify() disabled." OFF)
|
OPTION(OSG_NOTIFY_DISABLED "Set to ON to build OpenSceneGraph with the notify() disabled." OFF)
|
||||||
|
|
||||||
|
OPTION(OSG_USE_DEPRECATED_API "Set to ON to build OpenSceneGraph with the OSG_USE_DEPREFATED_API #define enabled to allow access to deprecated APIs ." ON)
|
||||||
|
|
||||||
OPTION(OSG_USE_FLOAT_MATRIX "Set to ON to build OpenSceneGraph with float Matrix instead of double." OFF)
|
OPTION(OSG_USE_FLOAT_MATRIX "Set to ON to build OpenSceneGraph with float Matrix instead of double." OFF)
|
||||||
MARK_AS_ADVANCED(OSG_USE_FLOAT_MATRIX)
|
MARK_AS_ADVANCED(OSG_USE_FLOAT_MATRIX)
|
||||||
|
|
||||||
|
@ -15,10 +15,6 @@
|
|||||||
#define OSG_EXPORT_ 1
|
#define OSG_EXPORT_ 1
|
||||||
|
|
||||||
#include<osg/Config>
|
#include<osg/Config>
|
||||||
// define USE_DEPRECATED_API is used to include in API which is being fazed out
|
|
||||||
// if you can compile your apps with this turned off you are
|
|
||||||
// well placed for compatibility with future versions.
|
|
||||||
#define USE_DEPRECATED_API
|
|
||||||
|
|
||||||
// disable VisualStudio warnings
|
// disable VisualStudio warnings
|
||||||
#if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS)
|
#if defined(_MSC_VER) && defined(OSG_DISABLE_MSVC_WARNINGS)
|
||||||
|
@ -33,5 +33,6 @@
|
|||||||
#cmakedefine OSG_USE_UTF8_FILENAME
|
#cmakedefine OSG_USE_UTF8_FILENAME
|
||||||
#cmakedefine OSG_DISABLE_MSVC_WARNINGS
|
#cmakedefine OSG_DISABLE_MSVC_WARNINGS
|
||||||
#cmakedefine OSG_PROVIDE_READFILE
|
#cmakedefine OSG_PROVIDE_READFILE
|
||||||
|
#cmakedefine OSG_USE_DEPRECATED_API
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user