Re: [CMake] Where is a good place to install CMake scripts that are to be executed by cmake -P ?
On Thursday 22 August 2013, you wrote: On 2013-08-21 22:41+0200 Alexander Neundorf wrote: On Tuesday 06 August 2013, Alan W. Irwin wrote: I have a project that installs a CMake script which will be executed by users using cmake -P fullpath_for_cmake_scriptname. Where is a reasonable place to install cmake_scriptname? Currently I am thinking of prefix/share/project_name/cmake_scriptname what kind of files are these ? Should they be executed manually by users or from their buildsystems, after some package has been found ? Hi Alex: This cmake script file is executed using cmake -P from an installed shell script to work around some path mangling issues that occur for a pure shell script environment for MinGW. So it is the cmake scripting ability that is being used here rather than anything specific to do with a build system. So it a fairly unique use case, but nevertheless I would like the installation location for that cmake script file to be consistent with standards (if there are any such for cmake scripts). For now I am sticking with prefix/share/project_name/cmake_scriptname for that install location, but I am willing to change if there is a more standard install location for cmake scripts. I think that's a perfectly good place, it even conforms to the places searched by find_package() in Config-mode, even if that doesn't matter in your case as I understand it. Alex -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Where is a good place to install CMake scripts that are to be executed by cmake -P ?
On Tuesday 06 August 2013, Alan W. Irwin wrote: I have a project that installs a CMake script which will be executed by users using cmake -P fullpath_for_cmake_scriptname. Where is a reasonable place to install cmake_scriptname? Currently I am thinking of prefix/share/project_name/cmake_scriptname what kind of files are these ? Should they be executed manually by users or from their buildsystems, after some package has been found ? Alex -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Where is a good place to install CMake scripts that are to be executed by cmake -P ?
On 2013-08-21 22:41+0200 Alexander Neundorf wrote: On Tuesday 06 August 2013, Alan W. Irwin wrote: I have a project that installs a CMake script which will be executed by users using cmake -P fullpath_for_cmake_scriptname. Where is a reasonable place to install cmake_scriptname? Currently I am thinking of prefix/share/project_name/cmake_scriptname what kind of files are these ? Should they be executed manually by users or from their buildsystems, after some package has been found ? Hi Alex: This cmake script file is executed using cmake -P from an installed shell script to work around some path mangling issues that occur for a pure shell script environment for MinGW. So it is the cmake scripting ability that is being used here rather than anything specific to do with a build system. So it a fairly unique use case, but nevertheless I would like the installation location for that cmake script file to be consistent with standards (if there are any such for cmake scripts). For now I am sticking with prefix/share/project_name/cmake_scriptname for that install location, but I am willing to change if there is a more standard install location for cmake scripts. Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __ Linux-powered Science __ -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Where is a good place to install CMake scripts that are to be executed by cmake -P ?
2013/8/6 Alan W. Irwin ir...@beluga.phys.uvic.ca: I have a project that installs a CMake script which will be executed by users using cmake -P fullpath_for_cmake_scriptname. Where is a reasonable place to install cmake_scriptname? Currently I am thinking of prefix/share/project_name/cmake_scriptname but I am a bit concerned that location might be a bad choice because it is completely unpopulated under Debian (at least for CMake scriptnames that end in *.cmake), i.e., irwin@raven ls /usr/share/*/*.cmake ls: cannot access /usr/share/*/*.cmake: No such file or directory May be you should try: find /usr/share/ -name *.cmake (or use globstar bash option: http://www.linuxjournal.com/content/globstar-new-bash-globbing-option $ shopt -s globstar $ ls /usr/share/**/*.cmake ) on my debian (Jessie) I get at least: /usr/share/llvm-3.4/cmake/*.cmake /usr/share/cmake/SharedDesktopOntologies/*.cmake /usr/share/cmake-2.8/... /usr/share/kde4/apps/cmake/modules/*.cmake I usually install my CMake scripts in: prefix/share/project_name/cmake_scriptname or prefix/share/project_name/scripts/cmake_scriptname -- Erk L'élection n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Where is a good place to install CMake scripts that are to be executed by cmake -P ?
I have a project that installs a CMake script which will be executed by users using cmake -P fullpath_for_cmake_scriptname. Where is a reasonable place to install cmake_scriptname? Currently I am thinking of prefix/share/project_name/cmake_scriptname but I am a bit concerned that location might be a bad choice because it is completely unpopulated under Debian (at least for CMake scriptnames that end in *.cmake), i.e., irwin@raven ls /usr/share/*/*.cmake ls: cannot access /usr/share/*/*.cmake: No such file or directory Alan __ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __ Linux-powered Science __ -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake