Files
cmake/Tests/RunCMake/find_package/ModuleNameCaseMismatch.cmake
Richard dadbb71492 include/find_package: Warn on case-mismatched module names
Detect when the requested module name differs in case from the module
filename on disk.  Emit an author warning on Windows and Apple
platforms, where case-insensitive lookup can hide portability problems
on case-sensitive filesystems.

Fixes: #27811
2026-05-28 08:57:59 -04:00

8 lines
210 B
CMake

list(PREPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_LIST_DIR}/ModuleNameCaseMismatch")
find_package(casemodule MODULE)
if(NOT casemodule_FOUND)
message(FATAL_ERROR "FindCaseModule.cmake not included")
endif()