blob: af5e1f337f5a3b683d9b1e116586e4a2e64c8cfb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index d6f0e3e..11512ff 100755
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -582,9 +582,13 @@ endif()
if(SVTHEVC_FOUND)
target_link_libraries(x265-static ${SVT_HEVC_LIBRARY})
endif()
+if(ENABLE_SHARED)
+ set_target_properties(x265-static PROPERTIES EXCLUDE_FROM_ALL 1)
+else()
install(TARGETS x265-static
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
+endif()
if(ENABLE_HDR10_PLUS)
install(TARGETS hdr10plus-static
|