aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/service
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-14 21:29:35 +0200
committerEgor Tensin <egor@tensin.name>2026-06-15 00:08:11 +0200
commit5a7e245d3cd829e093fed6ccd8cac4606cbb7fa9 (patch)
tree89dcb5b6021f22e865f1acbef3fe61ac9cd6bbf9 /um/service
parentcmake: more precise minimum version detection (diff)
downloadwindows7-drivers-5a7e245d3cd829e093fed6ccd8cac4606cbb7fa9.tar.gz
windows7-drivers-5a7e245d3cd829e093fed6ccd8cac4606cbb7fa9.zip
um: remove cmake-common
I'm having trouble making the latest versions work on the older Appveyor images + I'm not using Boost here anyway, so it kinda loses its utility.
Diffstat (limited to 'um/service')
-rw-r--r--um/service/CMakeLists.txt1
-rw-r--r--um/service/utils/CMakeLists.txt5
2 files changed, 4 insertions, 2 deletions
diff --git a/um/service/CMakeLists.txt b/um/service/CMakeLists.txt
index ff3f4f4..d6ffdbc 100644
--- a/um/service/CMakeLists.txt
+++ b/um/service/CMakeLists.txt
@@ -1,7 +1,6 @@
file(GLOB_RECURSE service_include "include/*.hpp")
file(GLOB service_src "src/*.cpp")
add_library(service ${service_src} ${service_include})
-target_compile_definitions(service PRIVATE NOMINMAX)
target_include_directories(service PUBLIC include/)
add_subdirectory(test)
diff --git a/um/service/utils/CMakeLists.txt b/um/service/utils/CMakeLists.txt
index 95a3e48..0557f95 100644
--- a/um/service/utils/CMakeLists.txt
+++ b/um/service/utils/CMakeLists.txt
@@ -7,7 +7,10 @@ function(add_util action src)
set_target_properties("${target}" PROPERTIES OUTPUT_NAME "${name}")
install(TARGETS "${target}" RUNTIME DESTINATION bin)
- install_pdbs(TARGETS "${target}" DESTINATION bin)
+ if(MSVC)
+ install(FILES $<TARGET_PDB_FILE:${target}>
+ DESTINATION bin OPTIONAL)
+ endif()
endfunction()
add_util(install install_service.cpp)