revert cmake remove targets from install path
authorAndy Green <andy@warmcat.com>
Tue, 29 Mar 2016 13:49:47 +0000 (21:49 +0800)
committerAndy Green <andy@warmcat.com>
Tue, 29 Mar 2016 13:49:47 +0000 (21:49 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
CMakeLists.txt
libwebsockets.spec

index db85b5a..304a221 100644 (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")
 
index ba73f3b..4148aa6 100644 (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)