[CMake] define addition search path for .cmake files
J. Caleb Wherry
calebwherry at gmail.com
Sat Feb 17 09:18:54 EST 2018
https://cmake.org/cmake/help/latest/variable/CMAKE_MODULE_PATH.html#variable:CMAKE_MODULE_PATH
Should do the trick. Set it before you call project, not sure if it works
after that or not.
-Caleb
On Sat, Feb 17, 2018 at 7:47 AM <cmake at a.legko.ru> wrote:
>
>
> Hi!
>
> So, I have separate installation (root) path for a project, many libs
> there, installing their own *.cmake files (VTK,
> etc.) files into that root.
> How to define (add) alternative paths for cmake to search for *.cmake
> files?
> Testing environment variables without any effect (CMAKE_*).
> The idea to change original cmake files in each source package is not a
> good one.
>
>
> Thanx!
>
> --
>
> 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:
> https://cmake.org/mailman/listinfo/cmake
>
--
Sent from my iPhone 4s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180217/0c2f6fce/attachment-0001.html>
More information about the CMake
mailing list