diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index bd9177a9..c379042f 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -43,29 +43,6 @@ if (NOT NO_OPENGL) add_subdirectory(glPtexViewer) endif() - else() - - set(MISSING "") - - if (NOT OPENGL_FOUND) - list(APPEND MISSING OpenGL) - endif() - - if (NOT GLEW_FOUND) - list(APPEND MISSING glew) - endif() - - if (NOT GLFW_FOUND) - list(APPEND MISSING glfw) - endif() - - message(WARNING - "The following libraries could not be found : ${MISSING}. " - "The glViewer and ptexViewer examples will not be available. " - "If you have these libraries installed, please specify their " - "path to cmake (through the GLEW_LOCATION and GLFW_LOCATION " - "command line arguments or environment variables)." - ) endif() endif() diff --git a/regression/CMakeLists.txt b/regression/CMakeLists.txt index 0c1fb9d5..10fcce6c 100644 --- a/regression/CMakeLists.txt +++ b/regression/CMakeLists.txt @@ -34,28 +34,6 @@ if (NOT NO_REGRESSION) if(OPENGL_FOUND AND (GLEW_FOUND OR APPLE) AND GLFW_FOUND) add_subdirectory(osd_regression) - else() - set(MISSING "") - - if (NOT OPENGL_FOUND) - list(APPEND MISSING OpenGL) - endif() - - if (NOT GLEW_FOUND) - list(APPEND MISSING glew) - endif() - - if (NOT GLFW_FOUND) - list(APPEND MISSING glfw) - endif() - - message(WARNING - "The following libraries could not be found : ${MISSING}. " - "The osd regression test will not be available. " - "If you have these libraries installed, please specify their " - "path to cmake (through the GLEW_LOCATION and GLFW_LOCATION " - "command line arguments or environment variables)." - ) endif() endif()