Mercurial > x265
changeset 12360:df5bd3be9b11 draft stable
Fixes cmake error "cannot find x265.pdb" when installing files for static debug build provided enable_cli is off.
author | Radhakrishnan <radhakrishnan@multicorewareinc.com> |
---|---|
date | Fri, 01 Jun 2018 14:56:40 +0530 |
parents | 703eade86b53 |
children | 617590cb8b98 b44d5f0e42f8 |
files | source/CMakeLists.txt |
diffstat | 1 files changed, 1 insertions(+-), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/source/CMakeLists.txt Wed May 30 17:30:05 2018 +0530 +++ b/source/CMakeLists.txt Fri Jun 01 14:56:40 2018 +0530 @@ -554,7 +554,7 @@ if(ENABLE_HDR10_PLUS) 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)