diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 32d3b7615..95b13ca69 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -193,8 +193,10 @@ IF(DYNAMIC_OPENSCENEGRAPH) ADD_SUBDIRECTORY(osgviewerFOX) ENDIF(FOX_FOUND) - IF (wxWidgets_FOUND AND (${CMAKE_BUILD_TYPE} STREQUAL "Release")) - ADD_SUBDIRECTORY(osgviewerWX) + IF (wxWidgets_FOUND AND CMAKE_BUILD_TYPE) + IF (${CMAKE_BUILD_TYPE} STREQUAL "Release") + ADD_SUBDIRECTORY(osgviewerWX) + ENDIF() ENDIF() IF (QT_FOUND AND NOT OSG_GLES1_AVAILABLE AND NOT OSG_GLES2_AVAILABLE AND NOT OSG_GL3_AVAILABLE)