On Windows, OPENGL_INCLUDE_DIR is empty even when OpenGL is found

This commit is contained in:
Clement Jamin 2016-06-10 15:05:16 +02:00
parent a95ae40c65
commit 561bd80d96
1 changed files with 3 additions and 1 deletions

View File

@ -287,7 +287,9 @@ if( NOT CGAL_MACROS_FILE_INCLUDED )
if (OPENGL_FOUND)
add_definitions("${OPENGL_DEFINITIONS}")
include_directories( SYSTEM "${OPENGL_INCLUDE_DIR}" )
if ( NOT "${OPENGL_INCLUDE_DIR}" STREQUAL "" )
include_directories( SYSTEM "${OPENGL_INCLUDE_DIR}" )
endif ()
endif(OPENGL_FOUND)
if(ZLIB_FOUND)