From 827d7ba2e97d8654707d8964fe6fefcf30c8cb23 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 13 Jun 2012 11:49:27 +0000 Subject: [PATCH] fixed highgui configuration with QT enabled --- modules/highgui/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index dfa824070..4e214219d 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -86,9 +86,9 @@ if(HAVE_QT) list(APPEND HIGHGUI_LIBRARIES ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY}) list(APPEND highgui_srcs src/window_QT.cpp ${_MOC_OUTFILES} ${_RCC_OUTFILES} ) - CHECK_CXX_COMPILER_FLAG(-Wno-missing-declarations HAVE_CXX_WNO_MISSING_DECLARATIONS) + ocv_check_flag_support(CXX -Wno-missing-declarations HAVE_CXX_WNO_MISSING_DECLARATIONS) if(HAVE_CXX_WNO_MISSING_DECLARATIONS) - set_source_files_properties(${_RCC_OUTFILES} PROPERTIES COMPILE_FLAGS "-Wno-missing-declarations") + set_source_files_properties(${_RCC_OUTFILES} PROPERTIES COMPILE_FLAGS -Wno-missing-declarations) endif() elseif(WIN32) list(APPEND highgui_srcs src/window_w32.cpp)