BuildSystem: Fix header copying to sysroot

We used to copy all headers everytime to sysroot which caused
rebuild of the whole os. Now we use the cmake command
'copy_directory_if_different' which seemed to fix this issue :)
This commit is contained in:
Bananymous
2023-04-10 20:27:20 +03:00
parent f924ac9265
commit 781cc78a1f
3 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.26)
project(BAN CXX)
add_custom_target(ban-headers
COMMAND cp -r ${CMAKE_CURRENT_SOURCE_DIR}/include/* ${BANAN_INCLUDE}
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different ${CMAKE_CURRENT_SOURCE_DIR}/include ${BANAN_INCLUDE}
DEPENDS sysroot
)