mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 05:20:34 +00:00
BUG: Fix for #7118.
Relative paths going outside the current source dir resulted in badly placed moc source files in the build dir (or out of the build dir).
This commit is contained in:
parent
d80ca5baea
commit
dcdcd00ffa
@ -1021,6 +1021,7 @@ IF (QT4_QMAKE_FOUND)
|
||||
FILE(RELATIVE_PATH rel ${CMAKE_CURRENT_SOURCE_DIR} ${infile})
|
||||
ENDIF(CMAKE_CURRENT_BINARY_DIR MATCHES "${_checkinfile}")
|
||||
SET(_outfile "${CMAKE_CURRENT_BINARY_DIR}/${rel}")
|
||||
STRING(REPLACE ".." "__" _outfile ${_outfile})
|
||||
GET_FILENAME_COMPONENT(outpath ${_outfile} PATH)
|
||||
GET_FILENAME_COMPONENT(_outfile ${_outfile} NAME_WE)
|
||||
FILE(MAKE_DIRECTORY ${outpath})
|
||||
|
Loading…
Reference in New Issue
Block a user