BUG: Fix error when paths have + in them. (special regex characters)
This commit is contained in:
parent
3db5c76198
commit
f868fe3abd
@ -903,12 +903,7 @@ IF (QT4_QMAKE_FOUND)
|
|||||||
|
|
||||||
# macro used to create the names of output files preserving relative dirs
|
# macro used to create the names of output files preserving relative dirs
|
||||||
MACRO (QT4_MAKE_OUTPUT_FILE infile prefix ext outfile )
|
MACRO (QT4_MAKE_OUTPUT_FILE infile prefix ext outfile )
|
||||||
STRING(REGEX MATCH "${CMAKE_CURRENT_BINARY_DIR}" _match ${infile})
|
FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_SOURCE_DIR} ${infile})
|
||||||
IF(_match)
|
|
||||||
FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_BINARY_DIR} ${infile})
|
|
||||||
ELSE(_match)
|
|
||||||
FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_SOURCE_DIR} ${infile})
|
|
||||||
ENDIF(_match)
|
|
||||||
SET(_outfile "${CMAKE_CURRENT_BINARY_DIR}/${rel}")
|
SET(_outfile "${CMAKE_CURRENT_BINARY_DIR}/${rel}")
|
||||||
GET_FILENAME_COMPONENT(outpath ${_outfile} PATH)
|
GET_FILENAME_COMPONENT(outpath ${_outfile} PATH)
|
||||||
GET_FILENAME_COMPONENT(_outfile ${_outfile} NAME_WE)
|
GET_FILENAME_COMPONENT(_outfile ${_outfile} NAME_WE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user