diff src/CMakeLists.txt @ 62:a28580a75faa

fix build fs.img
author anatofuz
date Thu, 25 Jul 2019 20:04:17 +0900
parents b3a3224e1823
children 58c79e0c5101
line wrap: on
line diff
--- a/src/CMakeLists.txt	Thu Jul 11 18:51:52 2019 +0900
+++ b/src/CMakeLists.txt	Thu Jul 25 20:04:17 2019 +0900
@@ -1,5 +1,6 @@
 cmake_minimum_required(VERSION 3.8)
 project(xv6cbc C ASM)
+set(BUILD_DIR ${PROJECT_BINARY_DIR})
 add_subdirectory(tools)
 add_subdirectory(usr)
 
@@ -77,6 +78,7 @@
     #  target_link_libraries(${_Gears_TARGET} m pthread)
 endmacro()
 
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DXV6KERNEL")
 
 GearsCommand (
   TARGET