From 0f02cd5c99d6759164a0ab362de4de93fee3c3f5 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 25 Mar 2021 00:38:36 +0300 Subject: cmake: use install_pdbs() --- um/wrappers/simple/utils/CMakeLists.txt | 4 +--- um/wrappers/special/nt_namespace/utils/CMakeLists.txt | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'um/wrappers') diff --git a/um/wrappers/simple/utils/CMakeLists.txt b/um/wrappers/simple/utils/CMakeLists.txt index c266f83..6aafb9a 100644 --- a/um/wrappers/simple/utils/CMakeLists.txt +++ b/um/wrappers/simple/utils/CMakeLists.txt @@ -3,6 +3,4 @@ target_link_libraries(simple_exchange_ints PRIVATE simple) set_target_properties(simple_exchange_ints PROPERTIES OUTPUT_NAME exchange_ints) install(TARGETS simple_exchange_ints RUNTIME DESTINATION bin) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$" DESTINATION bin OPTIONAL) -endif() +install_pdbs(TARGETS simple_exchange_ints DESTINATION bin) diff --git a/um/wrappers/special/nt_namespace/utils/CMakeLists.txt b/um/wrappers/special/nt_namespace/utils/CMakeLists.txt index a40b6e4..46e9b5e 100644 --- a/um/wrappers/special/nt_namespace/utils/CMakeLists.txt +++ b/um/wrappers/special/nt_namespace/utils/CMakeLists.txt @@ -7,6 +7,4 @@ if(MINGW) endif() install(TARGETS nt_namespace_convert RUNTIME DESTINATION bin) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$" DESTINATION bin OPTIONAL) -endif() +install_pdbs(TARGETS nt_namespace_convert DESTINATION bin) -- cgit v1.2.3