Added check against build type to avoid the build of the osgviewerWX example with debug build as this fails with unresolved symbols within the internals of WxWidgets.

This commit is contained in:
Robert Osfield
2011-10-20 11:50:04 +00:00
parent aa14f603d1
commit 62888dba38

View File

@@ -189,9 +189,9 @@ IF(DYNAMIC_OPENSCENEGRAPH)
ADD_SUBDIRECTORY(osgviewerFOX)
ENDIF(FOX_FOUND)
IF (wxWidgets_FOUND)
IF (wxWidgets_FOUND AND (${CMAKE_BUILD_TYPE} STREQUAL "Release"))
ADD_SUBDIRECTORY(osgviewerWX)
ENDIF(wxWidgets_FOUND)
ENDIF()
IF (QT_FOUND AND NOT OSG_GLES1_AVAILABLE AND NOT OSG_GLES2_AVAILABLE AND NOT OSG_GL3_AVAILABLE)