Commit 7742e8ee authored by dickelbeck's avatar dickelbeck
Browse files

copy rather than copy_if_needed because the latter was not always copying and...

copy rather than copy_if_needed because the latter was not always copying and thereby updating the modify time of the destintation file
parent dfdc744c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -400,7 +400,7 @@ foreach( loop_var ${BITMAP_SRCS} )
    set( cpp_bitmap ${path}/${XMP_CPP_DIR}/${basename}.cpp )
    set( cpp_bitmap ${path}/${XMP_CPP_DIR}/${basename}.cpp )
    add_custom_command(
    add_custom_command(
        OUTPUT ${cpp_bitmap}
        OUTPUT ${cpp_bitmap}
        COMMAND cmake -E copy_if_different '${path}/${basename}.xpm' '${cpp_bitmap}'
        COMMAND cmake -E copy '${path}/${basename}.xpm' '${cpp_bitmap}'
        DEPENDS ${basename}.xpm )
        DEPENDS ${basename}.xpm )
    list( APPEND cpp_bitmaps ${cpp_bitmap} )
    list( APPEND cpp_bitmaps ${cpp_bitmap} )
    SET_SOURCE_FILES_PROPERTIES( ${cpp_bitmap} PROPERTIES COMPILE_FLAGS -DXPMMAIN )
    SET_SOURCE_FILES_PROPERTIES( ${cpp_bitmap} PROPERTIES COMPILE_FLAGS -DXPMMAIN )