revert cmake remove targets from install path

Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
Andy Green 2016-03-29 21:49:47 +08:00
parent b45054ed39
commit 674609e69a
2 changed files with 9 additions and 1 deletions

View file

@ -1172,6 +1172,10 @@ install(FILES
"${PROJECT_BINARY_DIR}/LibwebsocketsConfigVersion.cmake"
DESTINATION "${LWS_INSTALL_CMAKE_DIR}" COMPONENT dev)
# Install exports for the install-tree.
install(EXPORT LibwebsocketsTargets
DESTINATION "${LWS_INSTALL_CMAKE_DIR}" COMPONENT dev)
# build subdir is not part of sources
set(CPACK_SOURCE_IGNORE_FILES $(CPACK_SOURCE_IGNORE_FILES) ".git" "build" "tgz" "tar.gz")

View file

@ -1,6 +1,6 @@
Name: libwebsockets
Version: 1.7.4
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Websocket Server and Client Library
Group: System Environment/Libraries
@ -59,6 +59,7 @@ rm -rf $RPM_BUILD_ROOT
/%{_libdir}/libwebsockets.so
/%{_libdir}/cmake/libwebsockets/LibwebsocketsConfig.cmake
/%{_libdir}/cmake/libwebsockets/LibwebsocketsConfigVersion.cmake
/%{_libdir}/cmake/libwebsockets/LibwebsocketsTargets.cmake
/usr/share/libwebsockets-test-server
%doc
%files devel
@ -69,6 +70,9 @@ rm -rf $RPM_BUILD_ROOT
/%{_libdir}/pkgconfig/libwebsockets.pc
%changelog
* Tue Mar 29 2016 Andy Green <andy@warmcat.com> 1.7.4-2
- MINOR added LibwebsocketsTargets.cmake
* Mon Mar 22 2016 Andy Green <andy@warmcat.com> 1.7.4-1
- MINOR fixes Upstream 1.7.4 release (see changelog)