Skip to content

Commit

Permalink
build: fixed include path in CMake config
Browse files Browse the repository at this point in the history
  • Loading branch information
vpirogov committed Jan 21, 2023
1 parent 891a415 commit c616453
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#===============================================================================
# Copyright 2016-2022 Intel Corporation
# Copyright 2016-2023 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -165,8 +165,7 @@ set_property(TARGET ${DNNL_LIBRARY_NAME} PROPERTY SOVERSION "${DNNL_VERSION_MAJO
target_include_directories(${DNNL_LIBRARY_NAME} PUBLIC
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/../include>
# $<INSTALL_PREFIX> is required for compatibility with cmake 2.8
$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)

target_link_libraries_build(${DNNL_LIBRARY_NAME}
Expand Down

0 comments on commit c616453

Please sign in to comment.