Hmm. It's a possibility. But those files are generate when I run cmake, aren't they? So re-running that would tend to overwrite any custom modifications I made. And I have about 350 of them.
I note that cmake_install.cmake simply uses the file(INSTALL ...) command. How could I find the implementation of the file() command? Could I possibly customize that implementation? Thanks much! ..chris On Tue, Jun 9, 2015 at 2:00 PM, Bill Hoffman <bill.hoff...@kitware.com> wrote: > On 6/9/2015 1:56 PM, Chris Johnson wrote: > >> >> We do use a globally included set of CMake rules in all of our >> CMakeLists.txt files, so if there's a bit of code that could be added >> there, that would be sufficient. >> >> All suggestions welcome! >> >> You might be able to do something with install(CODE ...) > > At the end of the day the install step is just running generated cmake > code. If you look in your build tree there are files like this: > cmake_install.cmake. With install(CODE), you can inject your own code into > those files. > > -Bill > > -- > > 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://public.kitware.com/mailman/listinfo/cmake >
-- 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://public.kitware.com/mailman/listinfo/cmake