--- x265/source/CMakeLists.txt.nopdb 2022-03-20 16:50:06.435395700 +0000 +++ x265/source/CMakeLists.txt 2022-03-20 16:50:23.988474200 +0000 @@ -554,7 +554,7 @@ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}) endif() install(FILES x265.h "${PROJECT_BINARY_DIR}/x265_config.h" DESTINATION include) -if((WIN32 AND ENABLE_CLI) OR (WIN32 AND ENABLE_SHARED)) +if((WIN32 AND ENABLE_CLI AND MSVC_IDE) OR (WIN32 AND ENABLE_SHARED AND MSVC_IDE)) 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)