Merge pull request #115 from mhx/mhx/fix-install

fix: revert to pre-4.x install path {prefix}/utf8cpp (see #112)
This commit is contained in:
Nemanja Trifunovic 2023-12-03 17:58:59 -05:00 committed by GitHub
commit bc36bafd6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
cmake_minimum_required (VERSION 3.5...3.27)
project (utf8cpp
project (utf8cpp
VERSION 4.0.1
LANGUAGES CXX
DESCRIPTION "C++ portable library for working with utf-8 encoding")
@ -10,7 +10,7 @@ include(GNUInstallDirs)
target_include_directories(utf8cpp INTERFACE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/source>"
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:include/utf8cpp>
)
include(CMakePackageConfigHelpers)
@ -44,5 +44,6 @@ install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake)
install(FILES ${PROJECT_SOURCE_DIR}/source/utf8.h DESTINATION include)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/source/utf8 DESTINATION include)
install(FILES ${PROJECT_SOURCE_DIR}/source/utf8.h DESTINATION include/utf8cpp)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/source/utf8 DESTINATION
include/utf8cpp)