fix CMakeList bug in disabling VPR graphics

This commit is contained in:
Xifan Tang 2019-06-15 13:21:25 -06:00
parent 18c355d3ee
commit 155c8d4924
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@ project("vpr7_x2p" C CXX)
# idenify if we need graphics
set(ENABLE_VPR_GRAPHIC_CXX_FLAG true)
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")
@ -23,6 +24,8 @@ if (ENABLE_VPR_GRAPHICS)
#Disable
set(ENABLE_VPR_GRAPHIC_CXX_FLAG false)
endif()
else ()
set(ENABLE_VPR_GRAPHIC_CXX_FLAG false)
endif()
if (NOT ENABLE_VPR_GRAPHIC_CXX_FLAG)