Skip to content

Commit 255bf1f

Browse files
authored
Install pkgconfig and cmake files into arch-dependent locations (#1055)
1 parent 763b7d6 commit 255bf1f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ set_target_properties(yaml-cpp PROPERTIES
142142
PROJECT_LABEL "yaml-cpp ${yaml-cpp-label-postfix}"
143143
DEBUG_POSTFIX "${CMAKE_DEBUG_POSTFIX}")
144144

145-
# FIXME(felix2012): A more common place for the cmake export would be
146-
# `CMAKE_INSTALL_LIBDIR`, as e.g. done in ubuntu or in this project for GTest
147-
set(CONFIG_EXPORT_DIR "${CMAKE_INSTALL_DATADIR}/cmake/yaml-cpp")
145+
set(CONFIG_EXPORT_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/yaml-cpp")
148146
set(EXPORT_TARGETS yaml-cpp)
149147
configure_package_config_file(
150148
"${PROJECT_SOURCE_DIR}/yaml-cpp-config.cmake.in"
@@ -175,7 +173,7 @@ if (YAML_CPP_INSTALL)
175173
"${PROJECT_BINARY_DIR}/yaml-cpp-config-version.cmake"
176174
DESTINATION "${CONFIG_EXPORT_DIR}")
177175
install(FILES "${PROJECT_BINARY_DIR}/yaml-cpp.pc"
178-
DESTINATION ${CMAKE_INSTALL_DATADIR}/pkgconfig)
176+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
179177
endif()
180178
unset(CONFIG_EXPORT_DIR)
181179

0 commit comments

Comments
 (0)