Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
255bf1f9
Unverified
Commit
255bf1f9
authored
Sep 20, 2022
by
Timo Gurr
Committed by
GitHub
Sep 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install pkgconfig and cmake files into arch-dependent locations (#1055)
parent
763b7d6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
CMakeLists.txt
+2
-4
No files found.
CMakeLists.txt
View file @
255bf1f9
...
...
@@ -142,9 +142,7 @@ set_target_properties(yaml-cpp PROPERTIES
PROJECT_LABEL
"yaml-cpp
${
yaml-cpp-label-postfix
}
"
DEBUG_POSTFIX
"
${
CMAKE_DEBUG_POSTFIX
}
"
)
# FIXME(felix2012): A more common place for the cmake export would be
# `CMAKE_INSTALL_LIBDIR`, as e.g. done in ubuntu or in this project for GTest
set
(
CONFIG_EXPORT_DIR
"
${
CMAKE_INSTALL_DATADIR
}
/cmake/yaml-cpp"
)
set
(
CONFIG_EXPORT_DIR
"
${
CMAKE_INSTALL_LIBDIR
}
/cmake/yaml-cpp"
)
set
(
EXPORT_TARGETS yaml-cpp
)
configure_package_config_file
(
"
${
PROJECT_SOURCE_DIR
}
/yaml-cpp-config.cmake.in"
...
...
@@ -175,7 +173,7 @@ if (YAML_CPP_INSTALL)
"
${
PROJECT_BINARY_DIR
}
/yaml-cpp-config-version.cmake"
DESTINATION
"
${
CONFIG_EXPORT_DIR
}
"
)
install
(
FILES
"
${
PROJECT_BINARY_DIR
}
/yaml-cpp.pc"
DESTINATION
${
CMAKE_INSTALL_
DATA
DIR
}
/pkgconfig
)
DESTINATION
${
CMAKE_INSTALL_
LIB
DIR
}
/pkgconfig
)
endif
()
unset
(
CONFIG_EXPORT_DIR
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment