build(win): don't try to package a PDB if not building with MSVC…

Co-authored-by: zeertzjq <zeertzjq@outlook.com>
(cherry picked from commit 5fe6bbae2d)
This commit is contained in:
Quentin Minster
2022-02-03 07:52:27 +01:00
committed by github-actions[bot]
parent 74cbddf6e1
commit 37b78620db

View File

@@ -485,7 +485,9 @@ add_executable(nvim ${NVIM_GENERATED_FOR_SOURCES} ${NVIM_GENERATED_FOR_HEADERS}
${EXTERNAL_SOURCES} ${EXTERNAL_HEADERS})
target_link_libraries(nvim ${NVIM_EXEC_LINK_LIBRARIES})
install_helper(TARGETS nvim)
install(FILES $<TARGET_PDB_FILE:nvim> DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
if(MSVC)
install(FILES $<TARGET_PDB_FILE:nvim> DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
endif()
set_property(TARGET nvim APPEND PROPERTY
INCLUDE_DIRECTORIES ${LUA_PREFERRED_INCLUDE_DIRS})