[CMake] exporting and using an exported package in the same project

Stéphane Ancelot sancelot at numalliance.com
Fri Feb 14 04:49:22 EST 2020


Hi,

I am trying to use a third party library 
(https://github.com/zaphoyd/websocketpp)

It exports a Config.cmake file when building , but I want to use it from 
my workspace in which I cloned it .

I tried using find_package(websocketpp CONFIG), but cmake replies 
websocketpp_DIR not found.

The question is: can I use an exported package from the workspace 
exporting it ?

Regards,

S.Ancelot





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20200214/8540dfcb/attachment.html>


More information about the CMake mailing list