From 84c28e9efa595353dede17c2a0b8cfff3e171d83 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 2 Dec 2017 07:00:43 -0500 Subject: [PATCH] CMake: explain better why PythonQt isn't found --- CMakeModules/FindPythonQt.cmake | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CMakeModules/FindPythonQt.cmake b/CMakeModules/FindPythonQt.cmake index 8de40853f..f0f4b8a73 100644 --- a/CMakeModules/FindPythonQt.cmake +++ b/CMakeModules/FindPythonQt.cmake @@ -139,4 +139,16 @@ if(PYTHONQT_INCLUDE_DIR AND PYTHONQT_LIBRARY AND PYTHONQT_QTALL_LIBRARY) set(PYTHONQT_FOUND 1) set(PythonQt_FOUND ${PYTHONQT_FOUND}) set(PYTHONQT_LIBRARIES ${PYTHONQT_LIBRARY} ${PYTHONQT_LIBUTIL} ${PYTHONQT_QTALL_LIBRARY}) +elseif(NOT PythonQt_FIND_QUIETLY) + set(_missing "") + if (NOT PYTHONQT_INCLUDE_DIR) + list(APPEND _missing "includes") + endif() + if (NOT PYTHONQT_LIBRARY) + list(APPEND _missing "library") + endif() + if (NOT PYTHONQT_QTALL_LIBRARY) + list(APPEND _missing "qtall") + endif() + message(STATUS "PythonQt not found, missing components ${_missing}") endif()