[MacPorts] #47844: cmake_share_module_dir set to wrong value in cmake PortGroup

MacPorts noreply at macports.org
Tue May 26 10:57:59 PDT 2015


#47844: cmake_share_module_dir set to wrong value in cmake PortGroup
----------------------+--------------------------------
  Reporter:  mmoll@…  |      Owner:  macports-tickets@…
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.3.3
Resolution:           |   Keywords:
      Port:  cmake    |
----------------------+--------------------------------

Comment (by michaelld@…):

 If the code you are using uses MacPorts & the cmake 1.0 PortGroup, then it
 should work unless it messes with the CMAKE_MODULE_PATH internally. On the
 other hand, if your code is outside MacPorts then you'll need to set
 CMAKE_MODULE_PATH to get it to work correctly.

 Your note here makes me believe that the possible recent changes to Cmake
 are probably just my use of variables. I do believe that
 ${prefix}/lib/cmake/Modules is searched by default.

 My preference would be for CMake to look in ${prefix}/lib/cmake,
 ${prefix}/share/cmake, and ${prefix}/share/cmake-${version} as well as
 whatever is in CMAKE_MODULE_PATH. But, that's not the way CMake works
 right now out with mods. I, for one, don't have time to make these mods.
 That's why we include this variable setting in the cmake PortGroup.

 You can always add to your project's CMake code some tweaks to set the
 CMAKE_MODULE_PATH variable, so that there's a default setting that will
 work most of the time. We do that in my CMake-based projects for quite a
 few variables.

-- 
Ticket URL: <https://trac.macports.org/ticket/47844#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list