Fixed compilation with cmake 3.2

This commit is contained in:
Deve 2015-02-22 10:01:46 +01:00
parent dd7eb2cf68
commit 0f56a4f6d3

View File

@ -184,6 +184,9 @@ find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
if(UNIX AND NOT APPLE)
find_package(X11 REQUIRED)
include_directories(${X11_INCLUDE_DIR})
if(USE_XRANDR)
find_package(Xrandr REQUIRED)
if(NOT XRANDR_FOUND)
@ -321,6 +324,7 @@ target_link_libraries(supertuxkart
)
if(UNIX AND NOT APPLE)
target_link_libraries(supertuxkart ${X11_LIBRARIES})
if(USE_XRANDR)
target_link_libraries(supertuxkart ${XRANDR_LIBRARIES})
else()