Skip to content

Commit 958515b

Browse files
committed
ENH: Updated CMakeLists.txt to warn the user if a wrapping option couldn't be satisifed
1 parent c263abd commit 958515b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ if(QT4_FOUND)
6161
# Enable required qt module
6262
foreach(qtlib network opengl sql svg uitools webkit xml xmlpatterns)
6363
string(TOUPPER ${qtlib} qtlib_uppercase)
64+
if (NOT ${QT_QT${qtlib_uppercase}_FOUND})
65+
message(FATAL_ERROR "QT_QT${${qtlib_uppercase} *not* FOUND - Try to disable PythonQt_Wrap_Qt${qtlib}")
66+
endif()
6467
set(QT_USE_QT${qtlib_uppercase} ${PythonQt_Wrap_Qt${qtlib}})
6568
endforeach()
6669

0 commit comments

Comments
 (0)