Blame SOURCES/0001-Do-not-install-static-libraries.patch

21820f
From 28a8f51964af5b439183f45fbd42fe13a17f74dc Mon Sep 17 00:00:00 2001
21820f
From: Tom Rix <trix@redhat.com>
21820f
Date: Sun, 19 Apr 2020 12:43:20 -0400
21820f
Subject: [PATCH] Do not install static libraries
21820f
21820f
Development libraries must be shared libraries.
21820f
Internal libraries can be static libraries.
21820f
Do not install internal libraries.
21820f
21820f
This effects libargsfilter.a which is only used by fpgainfo
21820f
21820f
Signed-off-by: Tom Rix <trix@redhat.com>
21820f
---
21820f
 cmake/modules/OPAECompiler.cmake | 11 -----------
21820f
 1 file changed, 11 deletions(-)
21820f
21820f
diff --git a/cmake/modules/OPAECompiler.cmake b/cmake/modules/OPAECompiler.cmake
21820f
index dfbc553..4aa05cc 100644
21820f
--- a/opae-libs/cmake/modules/OPAECompiler.cmake
21820f
+++ b/opae-libs/cmake/modules/OPAECompiler.cmake
21820f
@@ -346,15 +346,4 @@ function(opae_add_static_library)
21820f
 
21820f
     opae_coverage_build(TARGET ${OPAE_ADD_STATIC_LIBRARY_TARGET} SOURCE ${OPAE_ADD_STATIC_LIBRARY_SOURCE})
21820f
 
21820f
-    if(OPAE_ADD_STATIC_LIBRARY_COMPONENT)
21820f
-        if(OPAE_ADD_STATIC_LIBRARY_DESTINATION)
21820f
-            set(dest ${OPAE_ADD_STATIC_LIBRARY_DESTINATION})
21820f
-        else(OPAE_ADD_STATIC_LIBRARY_DESTINATION)
21820f
-            set(dest ${OPAE_LIB_INSTALL_DIR})
21820f
-        endif(OPAE_ADD_STATIC_LIBRARY_DESTINATION)
21820f
-
21820f
-        install(TARGETS ${OPAE_ADD_STATIC_LIBRARY_TARGET}
21820f
-                ARCHIVE DESTINATION ${dest}
21820f
-                COMPONENT ${OPAE_ADD_STATIC_LIBRARY_COMPONENT})
21820f
-    endif(OPAE_ADD_STATIC_LIBRARY_COMPONENT)
21820f
 endfunction()
21820f
-- 
21820f
2.18.1
21820f