diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-28 20:57:35 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-28 20:57:50 +0300 |
commit | 9989c9f8f1fac87798160203b8e674cbc44f5ff6 (patch) | |
tree | 89119bc764255dc0eb7e102804321f255de9fefa /examples/dynamic | |
parent | Makefile: check symbols for examples/boost also (diff) | |
download | cmake-common-before_toolchain_refactoring.tar.gz cmake-common-before_toolchain_refactoring.zip |
common.cmake: add install_pdbs()before_toolchain_refactoring
Diffstat (limited to '')
-rw-r--r-- | examples/dynamic/CMakeLists.txt | 4 |
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) |