diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 21:26:58 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 21:26:58 +0300 |
commit | bf5602a8cf0ed86fd37191824c1323a9d17ed415 (patch) | |
tree | 2809d82aa5e5f93b560c2775b767609b03b8bc99 /test/unit_tests | |
parent | workflows/ci: Bionic to Focal (diff) | |
download | winapi-common-bf5602a8cf0ed86fd37191824c1323a9d17ed415.tar.gz winapi-common-bf5602a8cf0ed86fd37191824c1323a9d17ed415.zip |
cmake: use install_pdbs()
Diffstat (limited to '')
-rw-r--r-- | test/unit_tests/CMakeLists.txt | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index 7311d75..c3d5b84 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -10,9 +10,7 @@ find_package(Boost REQUIRED COMPONENTS unit_test_framework) target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking Boost::unit_test_framework) install(TARGETS unit_tests RUNTIME DESTINATION bin) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:unit_tests>" DESTINATION bin OPTIONAL) -endif() +install_pdbs(TARGETS unit_tests DESTINATION bin) file(GLOB worker_src "worker/*.cpp") add_executable(worker ${worker_src} ${shared_src}) @@ -24,6 +22,4 @@ find_package(Boost REQUIRED) target_link_libraries(worker PRIVATE Boost::disable_autolinking Boost::boost) install(TARGETS worker RUNTIME DESTINATION bin) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:worker>" DESTINATION bin OPTIONAL) -endif() +install_pdbs(TARGETS worker DESTINATION bin) |