diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 175026d7..a6b29760 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -77,7 +77,7 @@ endif() # qt examples if(${BOOST_COMPUTE_HAVE_QT}) - find_package(Qt REQUIRED COMPONENTS QtCore QtGui QtOpenGL) + find_package(Qt4 REQUIRED COMPONENTS QtCore QtGui QtOpenGL) set(CMAKE_AUTOMOC TRUE) set(QT_USE_QTOPENGL TRUE) include(${QT_USE_FILE}) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b8813895..4e1e995b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -180,7 +180,7 @@ endif() # qt interop tests if(${BOOST_COMPUTE_HAVE_QT}) - find_package(Qt REQUIRED COMPONENTS QtCore QtGui QtOpenGL) + find_package(Qt4 REQUIRED COMPONENTS QtCore QtGui QtOpenGL) include(${QT_USE_FILE}) add_compute_test("interop.qt" test_interop_qt.cpp) target_link_libraries(test_interop_qt ${QT_LIBRARIES})