Removed a couple build advisory messages

This simplifies the build by restricting build
configuration commentary messages to the top-level
CMakeLists.txt instead of in leaf directories.
This commit is contained in:
David G Yu 2020-03-03 15:03:41 -08:00
parent 6339ac5c43
commit b738fa1225
2 changed files with 0 additions and 45 deletions

View File

@ -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()

View File

@ -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()