diff options
author | Laurent Montel <montel@kde.org> | 2008-02-19 08:35:49 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2008-02-19 08:35:49 +0000 |
commit | 648f2aee9796d2e2b5827fb5346c65e581504632 (patch) | |
tree | 32f5993ed210f3aceaf3517d3583d7d891836983 | |
parent | 723d57b3ef8f31d49684e799d31f62a1d996704c (diff) | |
download | extra-cmake-modules-648f2aee9796d2e2b5827fb5346c65e581504632.tar.gz extra-cmake-modules-648f2aee9796d2e2b5827fb5346c65e581504632.tar.bz2 |
Try to search XINE_XCB_FOUND if we have xine installed
svn path=/trunk/KDE/kdelibs/; revision=776982
-rw-r--r-- | modules/FindXine.cmake | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/FindXine.cmake b/modules/FindXine.cmake index 65777ed8..534613a6 100644 --- a/modules/FindXine.cmake +++ b/modules/FindXine.cmake @@ -47,10 +47,13 @@ if (XINE_INCLUDE_DIR AND XINE_LIBRARY AND XINECONFIG_EXECUTABLE) endif (XINE_VERSION_OK) endif (XINE_INCLUDE_DIR AND XINE_LIBRARY AND XINECONFIG_EXECUTABLE) -INCLUDE(CheckCSourceCompiles) -SET(CMAKE_REQUIRED_INCLUDES ${XINE_INCLUDE_DIR}) -SET(CMAKE_REQUIRED_LIBRARIES ${XINE_LIBRARY}) -CHECK_C_SOURCE_COMPILES("#include <xine.h>\nint main()\n{\n xine_open_video_driver(xine_new(), \"auto\", XINE_VISUAL_TYPE_XCB, NULL);\n return 0;\n}\n" XINE_XCB_FOUND) + +if( XINE_FOUND ) + INCLUDE(CheckCSourceCompiles) + SET(CMAKE_REQUIRED_INCLUDES ${XINE_INCLUDE_DIR}) + SET(CMAKE_REQUIRED_LIBRARIES ${XINE_LIBRARY}) + CHECK_C_SOURCE_COMPILES("#include <xine.h>\nint main()\n{\n xine_open_video_driver(xine_new(), \"auto\", XINE_VISUAL_TYPE_XCB, NULL);\n return 0;\n}\n" XINE_XCB_FOUND) +endif(XINE_FOUND) if (XINE_FOUND) if (NOT Xine_FIND_QUIETLY) |