mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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
8 lines
210 B
CMake
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()
|