Commit 74feb192 authored by Simon Morlat's avatar Simon Morlat

Make cmake config file installed in standard path.

parent 22ba1106
...@@ -195,7 +195,8 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ortp.pc DESTINATION "${CMAKE_INSTALL_L ...@@ -195,7 +195,8 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ortp.pc DESTINATION "${CMAKE_INSTALL_L
add_subdirectory(build) add_subdirectory(build)
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
set(CONFIG_PACKAGE_LOCATION "${CMAKE_INSTALL_DATADIR}/${EXPORT_TARGET_NAME}/cmake")
set(CONFIG_PACKAGE_LOCATION "${CMAKE_INSTALL_LIBDIR}/cmake/${EXPORT_TARGET_NAME}")
write_basic_package_version_file( write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_TARGET_NAME}ConfigVersion.cmake" "${CMAKE_CURRENT_BINARY_DIR}/${EXPORT_TARGET_NAME}ConfigVersion.cmake"
......
...@@ -118,7 +118,7 @@ rm -rf $RPM_BUILD_ROOT ...@@ -118,7 +118,7 @@ rm -rf $RPM_BUILD_ROOT
%endif %endif
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%{_includedir}/* %{_includedir}/*
%{_datadir}/ortp/cmake/* %{_libdir}/cmake/ortp/*
%changelog %changelog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment