[vlmc-devel] Cmake: fix compilation on some x11 systems
Jean-Baptiste Kempf
git at videolan.org
Fri Apr 22 17:01:32 CEST 2011
vlmc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 22 16:54:24 2011 +0200| [90dc0a52b1993dd2d7d97c28bba3103895b3d434] | committer: Hugo Beauzée-Luyssen
Cmake: fix compilation on some x11 systems
Signed-off-by: Hugo Beauzée-Luyssen <beauze.h at gmail.com>
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=90dc0a52b1993dd2d7d97c28bba3103895b3d434
---
CMakeLists.txt | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2d294fe..720f9a1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -144,6 +144,10 @@ IF (NOT WIN32)
IF (APPLE) # Fails to link to Cocoa framework automatically
SET (VLMC_LIBS ${VLMC_LIBS}
${CMAKE_OSX_SYSROOT}/System/Library/Frameworks/Cocoa.framework)
+ ELSE (APPLE)
+ IF (WITH_GUI)
+ SET (VLMC_LIBS ${VLMC_LIBS} -lX11)
+ ENDIF (WITH_GUI)
ENDIF(APPLE)
INCLUDE(${QT_USE_FILE})
More information about the Vlmc-devel
mailing list