From 9989c9f8f1fac87798160203b8e674cbc44f5ff6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 28 Oct 2020 20:57:35 +0300 Subject: common.cmake: add install_pdbs() --- examples/static/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/static/CMakeLists.txt') diff --git a/examples/static/CMakeLists.txt b/examples/static/CMakeLists.txt index 8a6acb8..e418aab 100644 --- a/examples/static/CMakeLists.txt +++ b/examples/static/CMakeLists.txt @@ -11,6 +11,4 @@ add_executable(foo foo.cpp) target_link_libraries(foo PRIVATE bar) install(TARGETS foo bar RUNTIME DESTINATION bin ARCHIVE DESTINATION lib) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$" DESTINATION bin OPTIONAL) -endif() +install_pdbs(TARGETS foo DESTINATION bin) -- cgit v1.2.3