Successful build of Qt GUI on MAC OSX using cmake.

This commit is contained in:
mjbudd77 2020-07-10 11:22:10 -04:00
parent 1206fcebbd
commit 321ea729d4
1 changed files with 6 additions and 2 deletions

View File

@ -33,7 +33,7 @@ else(WIN32)
add_definitions( -D_SYSTEM_MINIZIP ${MINIZIP_CFLAGS} )
endif()
pkg_check_modules( GL REQUIRED gl)
pkg_check_modules( GL gl)
# Check for OpenGL
if ( ${GL_FOUND} )
@ -64,7 +64,11 @@ else(WIN32)
add_definitions( -DHAVE_ASPRINTF ) # What system wouldn't have this?
set( SYS_LIBS -lrt -lpthread )
if(APPLE)
set( SYS_LIBS "-framework OpenGL" )
else()
set( SYS_LIBS -lrt -lpthread )
endif()
endif(WIN32)