mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Cmake refactor part 7
generate project source tree in all projects with sources source tree is based on real paths Change-Id: Ie10a6bffedb8020f25ebcb24a2f797086d8accbb
This commit is contained in:
committed by
sys_ocldev
parent
8f0789bd3e
commit
2466f9363f
@@ -79,11 +79,11 @@ endforeach(GEN_NUM)
|
||||
|
||||
set(CLOC_SRCS
|
||||
${CLOC_SRCS_LIB}
|
||||
main.cpp
|
||||
${IGDRCL_SOURCE_DIR}/offline_compiler/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
)
|
||||
|
||||
add_executable(cloc ${CLOC_SRCS})
|
||||
create_project_source_tree(cloc ${IGDRCL_SOURCE_DIR}/runtime)
|
||||
|
||||
if(IGC_OCL_ADAPTOR_DIR) # IGC/AdaptorOCL
|
||||
target_include_directories(cloc PUBLIC "${IGC_OCL_ADAPTOR_DIR}")
|
||||
@@ -112,7 +112,6 @@ endif(UNIX)
|
||||
|
||||
target_link_libraries(cloc elflib)
|
||||
|
||||
source_group("source files" FILES ${CLOC_SRCS})
|
||||
set_target_properties(cloc PROPERTIES FOLDER "offline_compiler")
|
||||
set_property(TARGET cloc APPEND_STRING PROPERTY COMPILE_FLAGS ${ASAN_FLAGS} ${TSAN_FLAGS})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user