aboutsummaryrefslogtreecommitdiff
path: root/ports/blosc/static-install-fix.patch
blob: 3416bde57c44ad1e428fb82c037d5f883e605492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/blosc/CMakeLists.txt b/blosc/CMakeLists.txt
index cd163f4..8cb1bdb 100644
--- a/blosc/CMakeLists.txt
+++ b/blosc/CMakeLists.txt
@@ -211,7 +211,9 @@ endif(BUILD_STATIC)
 # install
 if(BLOSC_INSTALL)
     install(FILES blosc.h blosc-export.h DESTINATION include COMPONENT DEV)
-    install(TARGETS blosc_shared DESTINATION ${lib_dir} COMPONENT LIB)
+    if(BUILD_SHARED)
+        install(TARGETS blosc_shared DESTINATION ${lib_dir} COMPONENT LIB)
+    endif(BUILD_SHARED)
     if(BUILD_STATIC)
         install(TARGETS blosc_static DESTINATION ${lib_dir} COMPONENT DEV)
     endif(BUILD_STATIC)