[CMake] fftw library in cmake

aishwarya selvaraj aishwaryaselvaraj1708 at gmail.com
Fri Apr 21 09:51:34 EDT 2017


Thanks Nils for the input .

On Fri, Apr 21, 2017 at 7:19 PM, Nils Gladitz <nilsgladitz at gmail.com> wrote:

> On 04/21/2017 03:40 PM, aishwarya selvaraj wrote:
>
> add_library(fftw STATIC IMPORTED)
>
> [...]
>
> TARGET_LINK_LIBRARIES(prose fftw  )
>
> [...]
>
> make[2]: *** No rule to make target `fftw-NOTFOUND', needed by `prose'.
> Stop.
>
>
> You are creating an IMPORTED target "fftw" but you aren't populating its
> IMPORTED_LOCATION [1] (or IMPORTED_LOCATION_<CONFIG> [2]) target property.
> Without it CMake does not know what on disk library file to link to.
>
> You can set target properties with set_property() or
> set_target_properties().
>
> Nils
>
> [1] https://cmake.org/cmake/help/latest/prop_tgt/IMPORTED_LOCATION.html
> [2] https://cmake.org/cmake/help/latest/prop_tgt/IMPORTED_
> LOCATION_CONFIG.html
>



-- 
Regards,
Aishwarya Selvaraj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170421/7f6e5459/attachment.html>


More information about the CMake mailing list