mirror of
https://github.com/nemtrif/utfcpp.git
synced 2025-04-04 13:05:06 +00:00
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:
commit
bc36bafd6b
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue