<div dir="ltr">Hi everyone,<div><br></div><div>I have a CMake project where I need to find the third-party package</div><div>```</div><div>FIND_PACKAGE(Trilinos REQUIRED)<br></div><div>```</div><div>which sits in the custom folder</div><div>```</div><div>/path/to/lib/x86_64-linux-gnu/cmake/Trilinos/TrilinosConfig.cmake</div><div>```</div><div>Unfortunately, simply extending the CMAKE_PREFIX_PATH</div><div>```</div><div><div>CMAKE_PREFIX_PATH=/path/to/:$CMAKE_PREFIX_PATH \</div><div>cmake ../source/</div></div><div>```</div><div>did not do the trick:</div><div>```</div><div><div>CMake Error at CMakeLists.txt:25 (FIND_PACKAGE):</div><div>  By not providing "FindTrilinos.cmake" in CMAKE_MODULE_PATH this project has</div><div>  asked CMake to find a package configuration file provided by "Trilinos",</div><div>  but CMake did not find one.</div><div><br></div><div>  Could not find a package configuration file provided by "Trilinos" with any</div><div>  of the following names:</div><div><br></div><div>    TrilinosConfig.cmake</div><div>    trilinos-config.cmake</div></div><div>[...]</div><div>```</div><div>What *does* help was setting the `project()` *before* `find_package()`. Is this something that documented anywhere?</div><div><br></div><div>Cheers,</div><div>Nico</div></div>