diff options
author | Quentin Minster <laomaiweng@minster.io> | 2022-02-03 07:52:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 07:52:27 +0100 |
commit | 5fe6bbae2da82b41caae3742df02287e1da1477a (patch) | |
tree | 4796e66f2fe9980762f295dbf174a99a790c6757 | |
parent | f70d1442bedcc5d2dfba903055769bedb444bdb3 (diff) | |
download | rneovim-5fe6bbae2da82b41caae3742df02287e1da1477a.tar.gz rneovim-5fe6bbae2da82b41caae3742df02287e1da1477a.tar.bz2 rneovim-5fe6bbae2da82b41caae3742df02287e1da1477a.zip |
build(win): don't try to package a PDB if not building with MSVC…
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
-rw-r--r-- | src/nvim/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index cc4f9bcdcf..dcc20194f0 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -493,7 +493,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}) |