From b70df00ce45454e43cdfab850214a1db31e68ab7 Mon Sep 17 00:00:00 2001 From: fkoehler Date: Tue, 29 Jul 2014 13:23:43 +0200 Subject: [PATCH] explicitly look for Qt4 and not for Qt in general --- example/CMakeLists.txt | 2 +- test/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 175026d78..a6b29760e 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 1d1d249ca..4c90e1be2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -179,7 +179,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})