On 04/13/2015 10:40 AM, Nico Schlömer wrote:
FIND_PACKAGE(Trilinos REQUIRED)
```
which sits in the custom folder
```
/path/to/lib/x86_64-linux-gnu/cmake/Trilinos/TrilinosConfig.cmake

[...]

What *does* help was setting the `project()` *before* `find_package()`.
Is this something that documented anywhere?

I don't think it is documented that explicitly but it is implied by the fact that project() [1] performs language initialization (that part is documented).

That includes determining that your compiler targets e.g. "x86_64-linux-gnu" so that find_package() knows to look in that target specific directory.

Nils

[1] http://www.cmake.org/cmake/help/v3.2/command/project.html

--

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

Reply via email to