mirror of
https://gitee.com/openharmony/third_party_opencl-headers
synced 2024-11-27 01:00:42 +00:00
If change the include path destination when run cmake configure with DCMAKE_INSTALL_INCLUDEDIR
, the .cmake generated still point to hardcoded path include
. this fix it (#178)
This commit is contained in:
parent
03162a6f8b
commit
1fc6fc181c
@ -6,13 +6,15 @@ project(OpenCLHeaders
|
||||
# https://stackoverflow.com/questions/43379311/why-does-project-affect-cmakes-opinion-on-cmake-sizeof-void-p
|
||||
)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
add_library(Headers INTERFACE)
|
||||
target_include_directories(Headers
|
||||
SYSTEM
|
||||
BEFORE
|
||||
INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
)
|
||||
|
||||
install(
|
||||
@ -20,8 +22,6 @@ install(
|
||||
EXPORT OpenCLHeadersTargets
|
||||
)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
install(
|
||||
DIRECTORY CL
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user