cmake patch from lux-integ.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 23 Aug 2010 01:17:14 +0000 (01:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 23 Aug 2010 01:17:14 +0000 (01:17 +0000)
CMakeLists.txt

index cb131c6e5e1cff978a523d48b5ff280be315f9f7..58ec770337dbd9d234e100befe2761de5d17b115 100644 (file)
@@ -294,9 +294,9 @@ IF(UNIX AND NOT APPLE)
                SET(EXPAT_LIB expat)
        ENDIF (WITH_OPENCOLLADA)
 
+       FIND_PACKAGE(X11 REQUIRED)
 
-       # Could use ${X11_Xinput_LIB} ${X11_X11_LIB} too
-       SET(LLIBS "-lXi -lutil -lc -lm -lpthread -lstdc++ -lX11")
+       SET(LLIBS "-lutil -lc -lm -lpthread -lstdc++ ${X11_X11_LIB} ${X11_Xinput_LIB}")
 
        IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
                # BSD's dont use libdl.so