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