cmake: use CMAKE_INSTALL_INCLUDEDIR indirection

Reviewed-by: Sergei Nikulov
Closes #6440
This commit is contained in:
Gregor Jasny 2021-01-12 14:11:07 +01:00 committed by Daniel Stenberg
parent fb98a436a7
commit 811acd1a08
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ if(WIN32)
endif()
target_include_directories(${LIB_NAME} INTERFACE
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
$<BUILD_INTERFACE:${CURL_SOURCE_DIR}/include>)
install(TARGETS ${LIB_NAME}