cmake: Fix Qt4 detection.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 15:24:53 +0000 (15:24 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 8 Feb 2008 15:24:53 +0000 (15:24 +0000)
extras/buildsystem/cmake/include/config.cmake

index f95b001..946046b 100644 (file)
@@ -392,13 +392,13 @@ if(Lua_FOUND)
 endif(Lua_FOUND)
 
 find_package(Qt4)
-if(Qt4_FOUND)
+if(QT4_FOUND)
   set(HAVE_QT4 TRUE)
   vlc_check_include_files (qt.h)
   vlc_enable_modules(qt4)
-  vlc_add_module_compile_flag(qt4 ${Qt4_CFLAGS} )
-  vlc_module_add_link_libraries(qt4 ${Qt4_LIBRARIES} Qt4)
-endif(Qt4_FOUND)
+  vlc_add_module_compile_flag(qt4 ${QT_CFLAGS} )
+  vlc_module_add_link_libraries(qt4 ${QT_LIBRARIES} Qt4)
+endif(QT4_FOUND)
 
 find_package(OpenGL)
 if(OPENGL_FOUND)