Skip to content

Commit

Permalink
Add interface includes for in-tree mode
Browse files Browse the repository at this point in the history
Unify handling of intrinsics interface includes in both modes.
  • Loading branch information
aus-intel authored and Anton Sidorenko committed Feb 24, 2022
1 parent 328694a commit e9fa035
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions GenXIntrinsics/lib/GenXIntrinsics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ if(BUILD_EXTERNAL)

vc_get_llvm_targets(LLVM_LIBS ${LLVM_COMPONENTS})
target_link_libraries(LLVMGenXIntrinsics ${LLVM_LIBS})

target_include_directories(LLVMGenXIntrinsics PUBLIC
$<BUILD_INTERFACE:${GENX_INTRINSICS_MAIN_INCLUDE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/../../include>
$<INSTALL_INTERFACE:include>
)
else()
# when we are building in LLVM infra, we need to conform
set(LLVM_LINK_COMPONENTS
Expand All @@ -54,3 +48,9 @@ else()
intrinsics_gen
)
endif()

target_include_directories(LLVMGenXIntrinsics PUBLIC
$<BUILD_INTERFACE:${GENX_INTRINSICS_MAIN_INCLUDE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/../../include>
$<INSTALL_INTERFACE:include>
)

0 comments on commit e9fa035

Please sign in to comment.