File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 39
39
print ("sip_bin:%s" % sipcfg .sip_bin )
40
40
print ("default_sip_dir:%s" % sipcfg .default_sip_dir )
41
41
print ("sip_inc_dir:%s" % sipcfg .sip_inc_dir )
42
- print ("sip_mod_dir:%s" % sipcfg .sip_mod_dir )
42
+ if hasattr (sipcfg , "sip_mod_dir" ):
43
+ print ("sip_mod_dir:%s" % sipcfg .sip_mod_dir )
44
+ else :
45
+ # SIP 4.19.10+ has no sipcfg.sip_mod_dir
46
+ print ("sip_mod_dir:%s" % sipcfg .sip_module_dir )
Original file line number Diff line number Diff line change @@ -96,6 +96,10 @@ MACRO(GENERATE_SIP_PYTHON_MODULE_CODE MODULE_NAME MODULE_SIP CPP_FILES)
96
96
ADD_DEFINITIONS ( /bigobj )
97
97
ENDIF (MSVC )
98
98
99
+ IF (NOT SIP_VERSION_NUM LESS 267018 )
100
+ SET (_sip_x ${_sip_x} -n sip )
101
+ ENDIF (NOT SIP_VERSION_NUM LESS 267018 )
102
+
99
103
SET (SIPCMD ${SIP_BINARY_PATH} ${_sip_tags} -w -e ${_sip_x} ${SIP_EXTRA_OPTIONS} -j ${SIP_CONCAT_PARTS} -c ${CMAKE_CURRENT_BINARY_DIR} /${_module_path} ${_sip_includes} ${_abs_module_sip} )
100
104
SET (SUPPRESS_SIP_WARNINGS FALSE CACHE BOOL "Hide SIP warnings" )
101
105
MARK_AS_ADVANCED (SUPPRESS_SIP_WARNINGS )
You can’t perform that action at this time.
0 commit comments