File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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" )
148146set (EXPORT_TARGETS yaml-cpp)
149147configure_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)
179177endif ()
180178unset (CONFIG_EXPORT_DIR)
181179
You can’t perform that action at this time.
0 commit comments