mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-26 19:33:34 +08:00
[cmake] watch config files
As we do add configure_file output to clean target cmake configure must be rerun. To trigger that add source and generated file to CMAKE_CONFIGURE_DEPENDS
This commit is contained in:
parent
02104bc2c3
commit
57969939e3
@ -6,9 +6,17 @@
|
|||||||
|
|
||||||
function(cleaning_configure_file SRC DST)
|
function(cleaning_configure_file SRC DST)
|
||||||
configure_file(${SRC} ${DST} ${ARGN})
|
configure_file(${SRC} ${DST} ${ARGN})
|
||||||
set_property(
|
set_property(
|
||||||
DIRECTORY
|
DIRECTORY
|
||||||
APPEND
|
APPEND
|
||||||
PROPERTY ADDITIONAL_CLEAN_FILES ${DST}
|
PROPERTY ADDITIONAL_CLEAN_FILES
|
||||||
)
|
${DST}
|
||||||
|
)
|
||||||
|
set_property(
|
||||||
|
DIRECTORY
|
||||||
|
APPEND
|
||||||
|
PROPERTY CMAKE_CONFIGURE_DEPENDS
|
||||||
|
${SRC}
|
||||||
|
${DST}
|
||||||
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
Loading…
Reference in New Issue
Block a user