aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/FindPyQt.py1
-rw-r--r--modules/FindPyQt4.cmake4
2 files changed, 5 insertions, 0 deletions
diff --git a/modules/FindPyQt.py b/modules/FindPyQt.py
index 1978f2d8..8e255319 100644
--- a/modules/FindPyQt.py
+++ b/modules/FindPyQt.py
@@ -20,3 +20,4 @@ for item in pyqtcfg.pyqt_sip_flags.split(' '):
print("pyqt_version_tag:%s" % pyqt_version_tag)
print("pyqt_sip_dir:%s" % pyqtcfg.pyqt_sip_dir)
+print("pyqt_sip_flags:%s" % pyqtcfg.pyqt_sip_flags)
diff --git a/modules/FindPyQt4.cmake b/modules/FindPyQt4.cmake
index 68a82cbc..37f645ea 100644
--- a/modules/FindPyQt4.cmake
+++ b/modules/FindPyQt4.cmake
@@ -19,6 +19,8 @@
# PYQT4_VERSION_TAG - The PyQt version tag using by PyQt's sip files.
#
# PYQT4_SIP_DIR - The directory holding the PyQt4 .sip files.
+#
+# PYQT4_SIP_FLAGS - The SIP flags used to build PyQt.
IF(EXISTS PYQT4_VERSION)
# Already in cache, be silent
@@ -33,6 +35,8 @@ ELSE(EXISTS PYQT4_VERSION)
STRING(REGEX REPLACE ".*\npyqt_version_str:([^\n]+).*$" "\\1" PYQT4_VERSION_STR ${pyqt_config})
STRING(REGEX REPLACE ".*\npyqt_version_tag:([^\n]+).*$" "\\1" PYQT4_VERSION_TAG ${pyqt_config})
STRING(REGEX REPLACE ".*\npyqt_sip_dir:([^\n]+).*$" "\\1" PYQT4_SIP_DIR ${pyqt_config})
+ STRING(REGEX REPLACE ".*\npyqt_sip_flags:([^\n]+).*$" "\\1" PYQT4_SIP_FLAGS ${pyqt_config})
+
SET(PYQT4_FOUND TRUE)
ENDIF(pyqt_config)