Mercurial > hg > Members > tobaru > CbC_xv6
changeset 85:d33e6b5adb57
tweak include_directories
author | anatofuz |
---|---|
date | Tue, 15 Oct 2019 16:14:18 +0900 |
parents | a4307abefd0b |
children | 765449889623 |
files | src/CMakeLists.txt |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/CMakeLists.txt Mon Oct 14 22:48:39 2019 +0900 +++ b/src/CMakeLists.txt Tue Oct 15 16:14:18 2019 +0900 @@ -50,7 +50,6 @@ set (_Gears_CBC_SOURCES) set (_Gears_CSOURCES) - include_directories("${CMAKE_BINARY_DIR}" ".") foreach(i ${_Gears_SOURCES}) if (${i} MATCHES "\\.cbc") string(REGEX REPLACE "(.*).cbc" "c/\\1.c" j ${i}) @@ -85,6 +84,8 @@ COMMAND "cd" "CMakeFiles/kernel.dir" ";" "perl" "${CMAKE_SOURCE_DIR}/gearsTools/generate_context.pl" "-o" ${_Gears_TARGET} ${_Gears_CBC_SOURCES} ) # add_executable(${_Gears_TARGET} ${_Gears_CBC_SOURCES} ${_Gears_CSOURCES} ${CMAKE_KERNEL_DIR}/c/${_Gears_TARGET}-context.c ) + include_directories(${_Gears_TARGET} PUBLIC ".") + include_directories(${_Gears_TARGET} PUBLIC ${CMAKE_KERNEL_DIR_C}) add_executable(${_Gears_TARGET} ${CMAKE_KERNEL_DIR_C} ${_Gears_CBC_SOURCES} ${_Gears_CSOURCES} ${CMAKE_KERNEL_DIR}/c/${_Gears_TARGET}-context.c ) # target_link_libraries(${_Gears_TARGET} m pthread) endmacro()