Re: [CMake] project(), find_package()

2015-04-13 Thread Nils Gladitz
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 documente

[CMake] project(), find_package()

2015-04-13 Thread Nico Schlömer
Hi everyone, I have a CMake project where I need to find the third-party package ``` FIND_PACKAGE(Trilinos REQUIRED) ``` which sits in the custom folder ``` /path/to/lib/x86_64-linux-gnu/cmake/Trilinos/TrilinosConfig.cmake ``` Unfortunately, simply extending the CMAKE_PREFIX_PATH ``` CMAKE_PREFIX_