mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-27 03:44:06 +08:00
57969939e3
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
23 lines
477 B
CMake
23 lines
477 B
CMake
# Little helper that adds the generated file to the
|
|
# files to be cleaned in the current directory.
|
|
#
|
|
# Handy if the generated files might have changed
|
|
#
|
|
|
|
function(cleaning_configure_file SRC DST)
|
|
configure_file(${SRC} ${DST} ${ARGN})
|
|
set_property(
|
|
DIRECTORY
|
|
APPEND
|
|
PROPERTY ADDITIONAL_CLEAN_FILES
|
|
${DST}
|
|
)
|
|
set_property(
|
|
DIRECTORY
|
|
APPEND
|
|
PROPERTY CMAKE_CONFIGURE_DEPENDS
|
|
${SRC}
|
|
${DST}
|
|
)
|
|
endfunction()
|