[CMake] error using find_package
Nils Gladitz
nilsgladitz at gmail.com
Sun Sep 28 10:48:21 EDT 2014
On 09/28/2014 04:31 PM, Benjamin Staubli wrote:
> Hello everyone,
>
> I encountered some problems when I tried to setup a CUDA project in
> CMake.
>
> My first line of code in the CMakeLists.txt file is find_package(CUDA).
That may be the problem if you do have an explicit project() call it has
to come before find_package().
project() runs compiler detection and queries compiler information which
is used by the module.
Nils
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140928/a0dcbc5d/attachment.html>
More information about the CMake
mailing list