mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
fix initial sip binding creation on windows
git-svn-id: http://svn.osgeo.org/qgis/trunk@13734 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
f1a5dcb40f
commit
5888caafad
@ -85,20 +85,10 @@ MACRO(ADD_SIP_PYTHON_MODULE MODULE_NAME MODULE_SIP)
|
||||
ENDIF( ${CONCAT_NUM} LESS ${SIP_CONCAT_PARTS} )
|
||||
ENDFOREACH(CONCAT_NUM RANGE 0 ${SIP_CONCAT_PARTS} )
|
||||
|
||||
IF(NOT WIN32)
|
||||
SET(TOUCH_COMMAND touch)
|
||||
ELSE(NOT WIN32)
|
||||
SET(TOUCH_COMMAND echo)
|
||||
# instead of a touch command, give out the name and append to the files
|
||||
# this is basically what the touch command does.
|
||||
FOREACH(filename ${_sip_output_files})
|
||||
FILE(APPEND ${filename} "")
|
||||
ENDFOREACH(filename ${_sip_output_files})
|
||||
ENDIF(NOT WIN32)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${_sip_output_files}
|
||||
COMMAND ${CMAKE_COMMAND} -E echo ${message}
|
||||
COMMAND ${TOUCH_COMMAND} ${_sip_output_files}
|
||||
COMMAND ${CMAKE_COMMAND} -E touch ${_sip_output_files}
|
||||
COMMAND ${SIP_BINARY_PATH} ${_sip_tags} ${_sip_x} ${SIP_EXTRA_OPTIONS} -j ${SIP_CONCAT_PARTS} -c ${CMAKE_CURRENT_BINARY_DIR}/${_module_path} ${_sip_includes} ${_abs_module_sip}
|
||||
DEPENDS ${_abs_module_sip} ${SIP_EXTRA_FILES_DEPEND}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user