Skip to content

COMP: prefix CMake check commands with DCMTK_ to avoid leaking - #153

Open
blowekamp wants to merge 1 commit into
DCMTK:masterfrom
blowekamp:prefix_cmake_check_commands
Open

COMP: prefix CMake check commands with DCMTK_ to avoid leaking#153
blowekamp wants to merge 1 commit into
DCMTK:masterfrom
blowekamp:prefix_cmake_check_commands

Conversation

@blowekamp

Copy link
Copy Markdown

CHECK_FUNCTION_EXISTS (Windows override) and CHECK_CXX_SYMBOL_EXISTS (fallback) were defined as global CMake commands. When DCMTK is built via FetchContent inside another project, these overrides leaked into sibling modules and caused incorrect feature detection.

Renamed to DCMTK_CHECK_FUNCTION_EXISTS and DCMTK_CHECK_CXX_SYMBOL_EXISTS and updated all call sites.

CHECK_FUNCTION_EXISTS (Windows override) and CHECK_CXX_SYMBOL_EXISTS
(fallback) were defined as global CMake commands. When DCMTK is built
via FetchContent inside another project, these overrides leaked into
sibling modules and caused incorrect feature detection.

Renamed to DCMTK_CHECK_FUNCTION_EXISTS and DCMTK_CHECK_CXX_SYMBOL_EXISTS
and updated all call sites.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants