Re: [CMake] Basic question how to find -lm include and lib dir with find_package or otherwise

2019-03-15 Thread Chuck Atkins via CMake
Usually you don't need to use the full path to libm, and it's only needed sometimes depending on your compiler and toolchain. I typically use something like the following to deal with both the implicit and explicit scenarios: include(CheckCSourceCompiles) set(LIBM_TEST_SOURCE "#include\nfloat f;

Re: [CMake] Basic question how to find -lm include and lib dir with find_package or otherwise

2019-03-15 Thread frodak17
On Thu, Mar 14, 2019 at 8:53 PM 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

[CMake] Basic question how to find -lm include and lib dir with find_package or otherwise

2019-03-14 Thread workbe...@gmx.at
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. best regards! pEpkey.asc Description: application/p