Add header to CMake panda/metalibs/pandagl that causes an error when it is being built without proper support.
This commit is contained in:
parent
c75b104ce7
commit
80b1a7e306
|
|
@ -1,4 +1,12 @@
|
|||
if(HAVE_GL)
|
||||
# Check that we actually have a display subsystem.
|
||||
if(NOT HAVE_WGL AND NOT HAVE_COCOA AND NOT HAVE_CARBON AND NOT HAVE_GLX)
|
||||
message("") # Add extra line before error
|
||||
message(SEND_ERROR
|
||||
"When compiling with OpenGL (HAVE_GL), at least one of:
|
||||
HAVE_WGL, HAVE_COCOA, HAVE_CARBON, or HAVE_GLX must be defined.")
|
||||
endif()
|
||||
|
||||
add_definitions(-DBUILDING_PANDAGL)
|
||||
set(PANDAGL_LINK_TARGETS p3glgsg)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue