Moved the OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION definition into the Config.in rather use of -D define
This commit is contained in:
parent
3c52c2578f
commit
7c6dbe0ed8
@ -263,6 +263,10 @@ MARK_AS_ADVANCED(OSG_USE_FLOAT_BOUNDINGSPHERE)
|
||||
OPTION(OSG_USE_FLOAT_BOUNDINGBOX "Set to ON to build OpenSceneGraph with float BoundingBox instead of double." ON)
|
||||
MARK_AS_ADVANCED(OSG_USE_FLOAT_BOUNDINGBOX)
|
||||
|
||||
#
|
||||
# Enable workaround for OpenGL driver crash with occlusion query
|
||||
#
|
||||
OPTION(OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION "Set to ON to use the ref_ptr<> T* operator() output conversion. " ON)
|
||||
|
||||
################################################################################
|
||||
# Set Config file
|
||||
@ -340,13 +344,6 @@ IF(PKG_CONFIG_FOUND)
|
||||
|
||||
ENDIF(PKG_CONFIG_FOUND)
|
||||
|
||||
#
|
||||
# Enable workaround for OpenGL driver crash with occlusion query
|
||||
#
|
||||
OPTION(OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION "Set to ON to use the ref_ptr<> T* operator() output conversion. " ON)
|
||||
IF(OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION)
|
||||
ADD_DEFINITIONS(-DOSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION)
|
||||
ENDIF(OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION)
|
||||
|
||||
|
||||
|
||||
|
@ -27,5 +27,6 @@
|
||||
#cmakedefine OSG_USE_FLOAT_PLANE
|
||||
#cmakedefine OSG_USE_FLOAT_BOUNDINGSPHERE
|
||||
#cmakedefine OSG_USE_FLOAT_BOUNDINGBOX
|
||||
#cmakedefine OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user