cmake: check for opengl and fail if it isn't found
This commit is contained in:
parent
e341f1c38e
commit
549e5f683f
|
@ -1,3 +1,12 @@
|
|||
|
||||
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(
|
||||
|
|
Loading…
Reference in New Issue