mariadb/cmake
Vladislav Vaintroub 9bf0492b7d
Some checks failed
Build on Windows ARM64 / build (push) Has been cancelled
MDEV-36904 Improve runtime dependency packaging on Windows
Background:
In MDEV-33474, we introduced runtime dependency packaging primarily to
support libcurl and other potential third-party dependencies from vcpkg.

Problem:
The INSTALL(RUNTIME_DEPENDENCY_SET) command was failing at packaging step
unless shared libraries from the same build were explicitly excluded via
PRE_EXCLUDE_REGEXES. While initially only server.dll was excluded this way,
this turned out insufficient for users compiling their own plugins

Solution:
Exclude all linked shared libraries from the same build via
PRE_EXCLUDE_REGEXES. Move dependency detection and install to the end of
CMake processing, after all add_library/add_executable calls, when all
targets are known.

Also made the INSTALL_RUNTIME_DEPENDENCIES variable independent of vcpkg
detection, for simplicity.
2025-06-10 13:23:54 +02:00
..
build_configurations Merge branch '10.11 into 11.4 2025-01-30 12:01:11 +01:00
Internal/CPack Merge branch '10.4' into 10.5 2021-12-07 21:30:27 +01:00
os Windows/ARM64 - fix build with clang-cl 2025-05-26 12:40:30 +02:00
abi_check.cmake Merge branch '10.4' into 10.5 2022-10-26 15:26:06 +02:00
aws_sdk.cmake MDEV-31205 Typo: complatible > compatible 2023-06-05 09:16:44 +10:00
build_depends.cmake MDEV-19740 Debug build of 10.3.15 FTBFS 2019-08-19 10:38:24 +03:00
character_sets.cmake A cleanup for MDEV-19897 Rename source code variable names from utf8 to utf8mb3 2019-06-28 21:12:57 +04:00
check_compiler_flag.cmake Merge 10.1 into 10.2 2019-06-12 10:30:01 +03:00
check_linker_flag.cmake MDEV-23887: check_linker_flags correct for old cmake compatibility 2020-10-21 19:11:02 +11:00
compile_flags.cmake Update FSF Address 2019-05-11 21:29:06 +03:00
configurable_file_content.in implement convenience libraries 2009-11-24 23:15:47 +00:00
configure.pl Change BUILD scripts to use wolfss by default 2023-02-03 10:57:13 +03:00
cpack_deb.cmake MDEV-24292 support semi-independent versioning for sub-packages 2021-01-12 16:47:23 +01:00
cpack_rpm.cmake Merge branch '10.11' into 11.4 2025-04-26 10:53:02 +02:00
cpack_source_ignore_files.cmake don't include .git files in source packages 2020-05-27 15:56:40 +02:00
cpack_tgz.cmake MDEV-14938 make buildbot to include galera into bintars 2022-01-07 15:37:00 +01:00
cpu_info.cmake cmake: fewer Build-Depends in SRPM 2021-05-22 21:56:51 +02:00
create_initial_db.cmake MDEV-30205 Move /usr/share/mysql to /usr/share/mariadb 2023-04-11 07:59:02 +10:00
ctest.cmake Revert "MDEV-16075: Workaround to run MTR test suite for make test" 2018-06-20 23:27:23 +02:00
do_abi_check.cmake Merge 10.4 into 10.5 2021-06-21 14:22:22 +03:00
dtrace.cmake Dtrace cmake fix for clang 2024-12-03 13:49:42 +03:00
dtrace_prelink.cmake Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
FindBISON.cmake cmake: quieter 2020-05-31 11:29:43 +02:00
FindGit.cmake cmake: silence repeated git searches too 2021-05-22 21:56:51 +02:00
FindJava.cmake Revert "MDEV-31230: Fix CONNECT_JDBC in CMake" 2023-06-02 09:02:41 +02:00
FindJNI.cmake Revert "MDEV-31230: Fix CONNECT_JDBC in CMake" 2023-06-02 09:02:41 +02:00
FindLIBAIO.cmake Change Find*.cmake modules to match conventions 2021-10-27 15:55:14 +02:00
FindLZ4.cmake cmake: detect lz4 version, require >= 1.6 2021-12-08 10:31:00 +01:00
FindLZO.cmake Change Find*.cmake modules to match conventions 2021-10-27 15:55:14 +02:00
FindSnappy.cmake Change Find*.cmake modules to match conventions 2021-10-27 15:55:14 +02:00
FindURING.cmake Change Find*.cmake modules to match conventions 2021-10-27 15:55:14 +02:00
FindZSTD.cmake Change Find*.cmake modules to match conventions 2021-10-27 15:55:14 +02:00
for_clients.cmake Merge branch '10.4' into 10.5 2021-07-31 23:19:51 +02:00
info_bin.cmake Update FSF Address 2019-05-11 21:29:06 +03:00
info_macros.cmake.in Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
info_src.cmake Update FSF Address 2019-05-11 21:29:06 +03:00
install_layout.cmake MDEV-30205 Move /usr/share/mysql to /usr/share/mariadb 2023-04-11 07:59:02 +10:00
install_macros.cmake MDEV-36904 Improve runtime dependency packaging on Windows 2025-06-10 13:23:54 +02:00
jemalloc.cmake Merge 10.2 into 10.3 2021-07-22 18:57:54 +03:00
libfmt.cmake new libfmt 2025-04-20 21:54:17 +02:00
libutils.cmake better disable lto for libmysqld_exports.cc 2024-10-17 21:37:37 +02:00
maintainer.cmake Merge 10.11 into 11.4 2024-12-02 11:35:34 +02:00
make_dist.cmake.in followup: rename generated files to have distinct names 2021-05-27 00:40:23 +02:00
mariadb_connector_c.cmake CONC-743 Enable parsec by default 2024-12-10 11:33:25 +01:00
merge_archives_unix.cmake libutils: merge_archives_unix 2020-06-18 14:15:36 +03:00
misc.cmake cleanup: CPACK_RPM_* package description 2019-07-10 09:02:10 +02:00
mysql_add_executable.cmake MDEV-33474 Windows packaging - install runtime dependencies 2025-04-16 13:22:28 +02:00
mysql_version.cmake Merge branch '10.4' into 10.5 2024-01-31 17:32:53 +01:00
numa.cmake Merge 10.2 into 10.3 2021-07-22 18:57:54 +03:00
package_name.cmake Merge branch '10.5' into 10.6 2024-01-31 18:04:03 +01:00
pcre.cmake Merge branch '10.5' into 10.6 2025-03-31 12:12:50 +02:00
plugin.cmake Merge branch '10.11' into 11.4 2025-04-26 10:53:02 +02:00
readline.cmake Improve READLINE_V5 detection 2024-01-23 18:38:22 +02:00
sign.cmake.in Fix typos in the codebase. 2022-08-09 18:41:09 +03:00
ssl.cmake Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
submodules.cmake Merge 10.3 into 10.4 2022-03-29 11:13:18 +03:00
symlinks.cmake Revert "MDEV-30610 Update RocksDB to v8.1.1" 2023-09-30 14:12:55 +02:00
systemd.cmake Revert "MDEV-36591: RHEL8(+compat)/Ubuntu 20.04 cannot start systemd servce (EXIT_CAPABILTIES/218)" 2025-04-25 17:48:13 +02:00
tags.cmake Update FSF Address 2019-05-11 21:29:06 +03:00
versioninfo.rc.in Update FSF Address 2019-05-11 21:29:06 +03:00
win_compatibility.manifest MDEV-26713 Set activeCodePage=UTF8 for windows programs 2021-12-15 19:13:57 +01:00
wsrep.cmake MDEV-34313 WITHOUT_SERVER/WSREP postfix 2024-06-29 10:24:09 +10:00
zlib.cmake MDEV-33876 CMake, zlib - use names compatible with official FindZLIB.cmake 2024-05-03 21:48:47 +02:00