changeset 72:4051ad3e0958

fix build fs.img
author anatofuz
date Wed, 31 Jul 2019 18:59:59 +0900
parents 6ebe7043702c
children 0bf6872eb250
files src/usr/CMakeLists.txt
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/usr/CMakeLists.txt	Wed Jul 31 18:50:53 2019 +0900
+++ b/src/usr/CMakeLists.txt	Wed Jul 31 18:59:59 2019 +0900
@@ -71,7 +71,10 @@
   list(APPEND _USR_COMMANDS "_${i}")
 endforeach(i)
 
+
+file(COPY "${CMAKE_SOURCE_DIR}/usr/UNIX" DESTINATION "${CMAKE_BINARY_DIR}/usr")
+
 add_custom_target(fs.img ALL
-  COMMAND ${CMAKE_SOURCE_DIR}/tools/mkfs fs.img ${_USR_COMMANDS} UNIX \; cp fs.img ${CMAKE_SOURCE_DIR}
+  COMMAND ${CMAKE_BINARY_DIR}/tools/mkfs fs.img ${_USR_COMMANDS} UNIX \; cp fs.img ${CMAKE_BINARY_DIR}
   DEPENDS ${_USR_COMMANDS} mkfs
 )