Commit 549e5f68 authored by raburton's avatar raburton

cmake: check for opengl and fail if it isn't found

parent e341f1c3
FIND_PACKAGE(OpenGL REQUIRED)
IF(OPENGL_FOUND)
MESSAGE(STATUS "Check for installed OpenGL -- found")
ELSE(OPENGL_FOUND)
MESSAGE(STATUS "Check for installed OpenGL -- not found")
MESSAGE(FATAL_ERROR "OpenGL was not found - it is required to build KiCad")
ENDIF(OPENGL_FOUND)
ADD_DEFINITIONS(-DPCBNEW)
INCLUDE_DIRECTORIES(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment