diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 22:41:31 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-24 22:41:31 +0300 |
commit | c57d855d5b99be90661702fb05bdff439ab52a5d (patch) | |
tree | e54c867dc112b982aed16f9df5a48b0739c5ea28 /test/unit_tests/CMakeLists.txt | |
parent | unit_tests: dynamic path to test_lib.pdb (diff) | |
download | winapi-debug-c57d855d5b99be90661702fb05bdff439ab52a5d.tar.gz winapi-debug-c57d855d5b99be90661702fb05bdff439ab52a5d.zip |
cmake: use install_pdbs()
Diffstat (limited to 'test/unit_tests/CMakeLists.txt')
-rw-r--r-- | test/unit_tests/CMakeLists.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index ae43fbb..135087b 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -5,9 +5,7 @@ target_link_libraries(unit_tests PRIVATE pdb_repo test_lib) target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking Boost::filesystem Boost::nowide Boost::unit_test_framework) install(TARGETS unit_tests RUNTIME DESTINATION bin/test) -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - install(FILES "$<TARGET_PDB_FILE:unit_tests>" DESTINATION bin/test OPTIONAL) -endif() +install_pdbs(TARGETS unit_tests DESTINATION bin/test) if(MSVC) # Set the working directory so that the unit_tests binary can find the |