[email protected] wrote:

> Hi,
> 
> I need to write a FindModule which search static and shared version of my
> lib. 

If it is your library, then you provide a Config.cmake file, not a 
FindModule:

 http://www.cmake.org/cmake/help/v3.2/manual/cmake-packages.7.html

> I would like to know what is the standard name, convention to import
> library static and shared ? (MyLib.a and MyLib.so) 
> * Two names ?
> (Foo::MyLib, Foo::MyLibStatic) ? (Foo::MyLib, Foo::Static::MyLib) ? 

I think this is the best solution cmake currently offers.

The bug 

 http://public.kitware.com/Bug/view.php?id=4222

tracks this.

Thanks,

Steve.


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to