aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client/CMakeLists.txt4
-rw-r--r--server/main/CMakeLists.txt4
-rw-r--r--test/benchmarks/CMakeLists.txt4
-rw-r--r--test/unit_tests/CMakeLists.txt4
4 files changed, 4 insertions, 12 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index f9765bd..0343ee2 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -14,6 +14,4 @@ target_link_libraries(client PRIVATE
Boost::program_options)
install(TARGETS client RUNTIME DESTINATION bin)
-if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
- install(FILES "$<TARGET_PDB_FILE:client>" DESTINATION bin OPTIONAL)
-endif()
+install_pdbs(TARGETS client DESTINATION bin)
diff --git a/server/main/CMakeLists.txt b/server/main/CMakeLists.txt
index 0111e4b..22853a7 100644
--- a/server/main/CMakeLists.txt
+++ b/server/main/CMakeLists.txt
@@ -21,6 +21,4 @@ target_link_libraries(server PRIVATE
Boost::program_options)
install(TARGETS server RUNTIME DESTINATION bin)
-if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
- install(FILES "$<TARGET_PDB_FILE:server>" DESTINATION bin OPTIONAL)
-endif()
+install_pdbs(TARGETS server DESTINATION bin)
diff --git a/test/benchmarks/CMakeLists.txt b/test/benchmarks/CMakeLists.txt
index c81a520..190ae8f 100644
--- a/test/benchmarks/CMakeLists.txt
+++ b/test/benchmarks/CMakeLists.txt
@@ -7,8 +7,6 @@ target_link_libraries(benchmarks PRIVATE lexer)
target_link_libraries(benchmarks PRIVATE benchmark benchmark_main)
install(TARGETS benchmarks RUNTIME DESTINATION bin)
-if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
- install(FILES "$<TARGET_PDB_FILE:benchmarks>" DESTINATION bin OPTIONAL)
-endif()
+install_pdbs(TARGETS benchmarks DESTINATION bin)
add_test(NAME benchmarks COMMAND benchmarks --benchmark_color=false)
diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt
index 16da801..7f1045b 100644
--- a/test/unit_tests/CMakeLists.txt
+++ b/test/unit_tests/CMakeLists.txt
@@ -10,8 +10,6 @@ find_package(Boost 1.67.0 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)
add_test(NAME unit_tests COMMAND unit_tests --no_color_output)