[CMake] Fwd: CMAKE_HOST_SYSTEM_NAME is empty
Orban, Laszlo
laszlo.orban at balabit.com
Mon Apr 29 02:08:40 EDT 2019
Hi Gregor,
I Installed cmake version 3.12.2 and I can confirm that it works,
CMAKE_HOST_SYSTEM_NAME is available before the project() call
Thank you very much for your assistance!
Laszlo
On Sun, Apr 28, 2019 at 9:54 PM Gregor Jasny <gjasny at googlemail.com> wrote:
> Hello,
>
> On 25.04.19 09:29, Orban, Laszlo wrote:
> > Please help me an issue I'm facing with CMAKE_HOST_SYSTEM_NAME on
> > FreeBSD 10.3. It gives back empty string, if I read it before the
> > 'project(...)'.
> > As far as I understood, CMAKE_SYSTEM_NAME can be used only after the
> > 'project(...)' call, but CMAKE_HOST_SYSTEM_NAME should simply give back
> >
> > Additional info:
> >
> > $ cmake --version
> > cmake version 3.4.1
>
> In CMake 3.9.0 and later I made CMAKE_HOST_SYSTEM_NAME available in
> scritping context (which should also make it available prior to a
> project() call).
>
> Change:
> https://gitlab.kitware.com/cmake/cmake/merge_requests/499
>
> Could you please re-try with latest CMake?
>
> Thanks,
> Gregor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190429/95c14393/attachment.html>
More information about the CMake
mailing list