Fixed compilation with cmake 3.2
This commit is contained in:
parent
dd7eb2cf68
commit
0f56a4f6d3
@ -184,6 +184,9 @@ find_package(OpenGL REQUIRED)
|
|||||||
include_directories(${OPENGL_INCLUDE_DIR})
|
include_directories(${OPENGL_INCLUDE_DIR})
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
|
find_package(X11 REQUIRED)
|
||||||
|
include_directories(${X11_INCLUDE_DIR})
|
||||||
|
|
||||||
if(USE_XRANDR)
|
if(USE_XRANDR)
|
||||||
find_package(Xrandr REQUIRED)
|
find_package(Xrandr REQUIRED)
|
||||||
if(NOT XRANDR_FOUND)
|
if(NOT XRANDR_FOUND)
|
||||||
@ -321,6 +324,7 @@ target_link_libraries(supertuxkart
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
|
target_link_libraries(supertuxkart ${X11_LIBRARIES})
|
||||||
if(USE_XRANDR)
|
if(USE_XRANDR)
|
||||||
target_link_libraries(supertuxkart ${XRANDR_LIBRARIES})
|
target_link_libraries(supertuxkart ${XRANDR_LIBRARIES})
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user