aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/dynamic
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dynamic')
-rw-r--r--examples/dynamic/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/dynamic/CMakeLists.txt b/examples/dynamic/CMakeLists.txt
index 4602adb..190b1c9 100644
--- a/examples/dynamic/CMakeLists.txt
+++ b/examples/dynamic/CMakeLists.txt
@@ -11,6 +11,4 @@ add_executable(foo foo.cpp)
target_link_libraries(foo PRIVATE baz)
install(TARGETS foo baz RUNTIME DESTINATION bin LIBRARY DESTINATION lib)
-if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
- install(FILES "$<TARGET_PDB_FILE:foo>" "$<TARGET_PDB_FILE:baz>" DESTINATION bin OPTIONAL)
-endif()
+install_pdbs(TARGETS foo baz DESTINATION bin)