Closed littlewu2508 closed 7 months ago
Hi @littlewu2508 the FindModule.cmake files under ${CMAKE_ROOT}/Modules are part of cmake repo: https://gitlab.kitware.com/cmake/cmake/-/tree/master/Modules?ref_type=heads and are managed by cmake so I do not think we should change the hip scripts to install the FindHIP.cmake in that location directly. I am closing this PR. However, we can consider moving the FindHIP.cmake to upstream cmake under Modules. Let me followup on this.
FindHIP.cmake is used in module mode in cmake, and modules should be placed in default location, ${CMAKE_ROOT}/Modules, so cmake can find it by default without appending CMAKE_MODULE_PATH. This is useful for distro installation.
Reference: https://cmake.org/cmake/help/latest/command/find_package.html#search-modes Reference: https://cmake.org/cmake/help/latest/variable/CMAKE_ROOT.html