Remove grouping resource file with other sources

Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
This commit is contained in:
Jemale Lockett 2021-05-24 15:21:25 -04:00 committed by Compute-Runtime-Automation
parent 9dbffa8d93
commit 4a1325a40e
2 changed files with 8 additions and 2 deletions

View File

@ -258,8 +258,7 @@ if(BUILD_WITH_L0)
) )
if(DEFINED L0_DLL_RC_FILE) if(DEFINED L0_DLL_RC_FILE)
message(STATUS "Setting L0 Resource Info") message(STATUS "Setting L0 Resource Info")
configure_file(${L0_DLL_RC_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/ze_intel_gpu.rc COPYONLY) target_sources(${TARGET_NAME_L0} PRIVATE ${L0_DLL_RC_FILE})
target_sources(${TARGET_NAME_L0} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/ze_intel_gpu.rc)
endif() endif()
else() else()
target_sources(${TARGET_NAME_L0} target_sources(${TARGET_NAME_L0}

View File

@ -8,6 +8,13 @@ function(create_source_tree target directory)
if(WIN32) if(WIN32)
get_filename_component(directory ${directory} ABSOLUTE) get_filename_component(directory ${directory} ABSOLUTE)
get_target_property(source_list ${target} SOURCES) get_target_property(source_list ${target} SOURCES)
#source_group fails with file generated in build directory
if(DEFINED L0_DLL_RC_FILE)
list(FIND source_list ${L0_DLL_RC_FILE} _index)
if(${_index} GREATER -1)
list(REMOVE_ITEM source_list ${L0_DLL_RC_FILE})
endif()
endif()
source_group(TREE ${directory} FILES ${source_list}) source_group(TREE ${directory} FILES ${source_list})
endif() endif()
endfunction() endfunction()