aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-25 00:38:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-25 00:38:36 +0300
commit0f02cd5c99d6759164a0ab362de4de93fee3c3f5 (patch)
treee8fae3789837ebb04f9a67c761c999639b9c6530
parentupdate cmake-common (diff)
downloadwindows7-drivers-0f02cd5c99d6759164a0ab362de4de93fee3c3f5.tar.gz
windows7-drivers-0f02cd5c99d6759164a0ab362de4de93fee3c3f5.zip
cmake: use install_pdbs()
-rw-r--r--um/service/utils/CMakeLists.txt4
-rw-r--r--um/wrappers/simple/utils/CMakeLists.txt4
-rw-r--r--um/wrappers/special/nt_namespace/utils/CMakeLists.txt4
3 files changed, 3 insertions, 9 deletions
diff --git a/um/service/utils/CMakeLists.txt b/um/service/utils/CMakeLists.txt
index 1dd3ec9..95a3e48 100644
--- a/um/service/utils/CMakeLists.txt
+++ b/um/service/utils/CMakeLists.txt
@@ -7,9 +7,7 @@ function(add_util action src)
set_target_properties("${target}" PROPERTIES OUTPUT_NAME "${name}")
install(TARGETS "${target}" RUNTIME DESTINATION bin)
- if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
- install(FILES "$<TARGET_PDB_FILE:${target}>" DESTINATION bin OPTIONAL)
- endif()
+ install_pdbs(TARGETS "${target}" DESTINATION bin)
endfunction()
add_util(install install_service.cpp)
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 "$<TARGET_PDB_FILE:simple_exchange_ints>" 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 "$<TARGET_PDB_FILE:nt_namespace_convert>" DESTINATION bin OPTIONAL)
-endif()
+install_pdbs(TARGETS nt_namespace_convert DESTINATION bin)