From 62888dba38f7ce940408c68680548bcf0a4d7bb7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 20 Oct 2011 11:50:04 +0000 Subject: [PATCH] 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. --- examples/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index e52d8a338..876d8e142 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -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)