[x265] Fwd: Fix build issues

Aarthi Priya Thirumalai aarthi at multicorewareinc.com
Mon Jun 4 04:43:42 CEST 2018


# HG changeset patch
# User Radhakrishnan <radhakrishnan at multicorewareinc.com>
# Date 1527845200 -19800
#      Fri Jun 01 14:56:40 2018 +0530
# Node ID ef02ddaad3dcc07a7750989b21878f82cd6c2f97
# Parent  9cde2c278464be0db96d41f9605a2dc7a3137165
Fixes cmake error "cannot find x265.pdb" when installing files for static
debug build provided enable_cli is off.

diff -r 9cde2c278464 -r ef02ddaad3dc source/CMakeLists.txt
--- a/source/CMakeLists.txt Wed May 30 20:54:07 2018 +0530
+++ b/source/CMakeLists.txt Fri Jun 01 14:56:40 2018 +0530
@@ -554,7 +554,7 @@
         ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
 endif()
 install(FILES x265.h "${PROJECT_BINARY_DIR}/x265_config.h" DESTINATION
include)
-if(WIN32)
+if((WIN32 AND ENABLE_CLI) OR (WIN32 AND ENABLE_SHARED))
     if(MSVC_IDE)
         install(FILES "${PROJECT_BINARY_DIR}/Debug/x265.pdb" DESTINATION
${BIN_INSTALL_DIR} CONFIGURATIONS Debug)
         install(FILES "${PROJECT_BINARY_DIR}/RelWithDebInfo/x265.pdb"
DESTINATION ${BIN_INSTALL_DIR} CONFIGURATIONS RelWithDebInfo)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180604/6bc35b48/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-install-error-x265.patch
Type: application/octet-stream
Size: 1029 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180604/6bc35b48/attachment.obj>


More information about the x265-devel mailing list