From 5a7e245d3cd829e093fed6ccd8cac4606cbb7fa9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 14 Jun 2026 21:29:35 +0200 Subject: 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. --- um/CMakeLists.txt | 5 ----- um/cmake | 1 - um/service/CMakeLists.txt | 1 - um/service/utils/CMakeLists.txt | 5 ++++- um/wrappers/nt_namespace/utils/CMakeLists.txt | 5 ++++- um/wrappers/simple/utils/CMakeLists.txt | 5 ++++- 6 files changed, 12 insertions(+), 10 deletions(-) delete mode 160000 um/cmake (limited to 'um') diff --git a/um/CMakeLists.txt b/um/CMakeLists.txt index b5df409..a5f20d6 100644 --- a/um/CMakeLists.txt +++ b/um/CMakeLists.txt @@ -1,7 +1,2 @@ -# WIN32_LEAN_AND_MEAN shouldn't be defined, it masks CTL_CODE: -set(CC_WINDOWS_DEF OFF) - -include(cmake/common.cmake) - add_subdirectory(service) add_subdirectory(wrappers) diff --git a/um/cmake b/um/cmake deleted file mode 160000 index a7dd03f..0000000 --- a/um/cmake +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a7dd03f2da53016b56f1cf99c0c3959f6ae3f2da 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 $ + DESTINATION bin OPTIONAL) + endif() endfunction() add_util(install install_service.cpp) diff --git a/um/wrappers/nt_namespace/utils/CMakeLists.txt b/um/wrappers/nt_namespace/utils/CMakeLists.txt index 46e9b5e..0af13d8 100644 --- a/um/wrappers/nt_namespace/utils/CMakeLists.txt +++ b/um/wrappers/nt_namespace/utils/CMakeLists.txt @@ -7,4 +7,7 @@ if(MINGW) endif() install(TARGETS nt_namespace_convert RUNTIME DESTINATION bin) -install_pdbs(TARGETS nt_namespace_convert DESTINATION bin) +if(MSVC) + install(FILES $ + DESTINATION bin OPTIONAL) +endif() diff --git a/um/wrappers/simple/utils/CMakeLists.txt b/um/wrappers/simple/utils/CMakeLists.txt index 6aafb9a..4660488 100644 --- a/um/wrappers/simple/utils/CMakeLists.txt +++ b/um/wrappers/simple/utils/CMakeLists.txt @@ -3,4 +3,7 @@ target_link_libraries(simple_exchange_ints PRIVATE simple) set_target_properties(simple_exchange_ints PROPERTIES OUTPUT_NAME exchange_ints) install(TARGETS simple_exchange_ints RUNTIME DESTINATION bin) -install_pdbs(TARGETS simple_exchange_ints DESTINATION bin) +if(MSVC) + install(FILES $ + DESTINATION bin OPTIONAL) +endif() -- cgit v1.3