mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 00:10:52 +02:00
cleanup in GLUT find module
This commit is contained in:
parent
3b9ae75162
commit
bcaaa56b3d
1 changed files with 3 additions and 11 deletions
|
@ -67,15 +67,7 @@ elseif()
|
|||
if(GLUT_INCLUDE_DIR AND GLUT_glut_LIBRARY)
|
||||
# Is -lXi and -lXmu required on all platforms that have it?
|
||||
# If not, we need some way to figure out what platform we are on.
|
||||
set(GLUT_LIBRARIES
|
||||
${GLUT_glut_LIBRARY}
|
||||
${GLUT_Xmu_LIBRARY}
|
||||
${GLUT_Xi_LIBRARY}
|
||||
)
|
||||
set(GLUT_FOUND TRUE)
|
||||
|
||||
set(GLUT_LIBRARY ${GLUT_LIBRARIES})
|
||||
set(GLUT_INCLUDE_PATH ${GLUT_INCLUDE_DIR})
|
||||
set(GLUT_LIBRARIES ${GLUT_glut_LIBRARY} ${GLUT_Xmu_LIBRARY} ${GLUT_Xi_LIBRARY})
|
||||
endif ()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
|
@ -84,7 +76,7 @@ elseif()
|
|||
|
||||
if (GLUT_FOUND)
|
||||
if (NOT GLUT_FIND_QUIETLY)
|
||||
message(STATUS "Found GLUT: ${GLUT_LIBRARY}")
|
||||
message(STATUS "Found GLUT: ${GLUT_LIBRARIES}")
|
||||
endif ()
|
||||
else ()
|
||||
if (GLUT_FIND_REQUIRED)
|
||||
|
|
Loading…
Reference in a new issue