Fix GUI support with cmake 3.16

Updated cmakelist to fix gui support with cmake > 3.12.  Tested on ubuntu 18.04.
This commit is contained in:
srtemp 2020-01-24 10:54:37 -07:00 committed by GitHub
parent 1cd4ca1fe2
commit c574ab081a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ message(STATUS "Checking VPR graphics option ${ENABLE_VPR_GRAPHICS}")
if (ENABLE_VPR_GRAPHICS)
# check for dependencies
message(STATUS "VPR graphics is turned on, searching for dependencies")
find_package(X11 COMPONENTS X11 Xft)
find_package(X11)
if (NOT X11_FOUND)
message(WARNING "Failed to find required X11 library (on debian/ubuntu try 'sudo apt-get install libx11-dev' to install)")