On Thu, Mar 14, 2019 at 8:53 PM workbe...@gmx.at <workbe...@gmx.at> wrote:

> Hi everyone,
>
> i'm searching for a way to find the right include dir so that -lm can be
> found, the is not find_package for this, is /usr/lib and /usr/include a
> default because he find it without me adding any include or lib path for
> the build.
>
>
>
It seems strange that you need to do this.  In my experience 'm' is just
the math portion of the 'c' library.  Depending on which host and toolset
you are using there can be multiple version of the 'm' library depending on
target architecture and other options used.  The linker should just use the
correct 'm' library just as it uses the correct 'c' library.  It could be
in /usr/lib depending on how the compiler was packaged for your host.
-- 

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:
https://cmake.org/mailman/listinfo/cmake

Reply via email to