aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-05-17 15:26:00 +0200
committerEgor Tensin <egor@tensin.name>2026-05-17 17:47:32 +0200
commit06c39b2fc4438b96338568cae82b44726abd7144 (patch)
tree087d1cb7bc8295348b52bd7fe08b8d2599802786 /test/CMakeLists.txt
parentcmake: use CONFIGURE_DEPENDS (diff)
downloadwinapi-common-06c39b2fc4438b96338568cae82b44726abd7144.tar.gz
winapi-common-06c39b2fc4438b96338568cae82b44726abd7144.zip
upgrade cmake-common
* common.cmake is removed. * PDB installation is done in an arguably simpler, custom way. * winapi-utf8 is upgraded.
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 396356d..4d930a9 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,7 +1,9 @@
add_executable(echo echo.cpp)
set_target_properties(echo PROPERTIES OUTPUT_NAME winapi-common-test-echo)
install(TARGETS echo RUNTIME DESTINATION bin)
-install_pdbs(TARGETS echo DESTINATION bin)
+if(MSVC)
+ install(FILES $<TARGET_PDB_FILE:echo> DESTINATION bin OPTIONAL)
+endif()
if(MINGW)
target_compile_options(echo PRIVATE -municode)
target_link_libraries(echo PRIVATE -municode)