fix cmake header path in install with custom CMAKE_INSTALL_INCLUDEDIR

This commit is contained in:
Benjamin Buch 2023-10-30 19:18:30 +01:00 committed by Hans Kristian Rosbach
parent 4abe8881d7
commit 8770d93a02

View File

@ -1075,7 +1075,7 @@ foreach(ZLIB_INSTALL_LIBRARY ${ZLIB_INSTALL_LIBRARIES})
endif()
target_include_directories(${ZLIB_INSTALL_LIBRARY} PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR};${CMAKE_CURRENT_SOURCE_DIR}>"
"$<INSTALL_INTERFACE:include>")
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
endforeach()
if(WIN32)