[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] CMake 3.11.3: set properties on the command line?
From:       Paul Smith <paul () mad-scientist ! net>
Date:       2019-01-22 20:00:58
Message-ID: b5fe12cafa1d9bae021671b9bf8b7bd1cb543062.camel () mad-scientist ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Tue, 2018-12-18 at 08:22 +1100, Craig Scott wrote:
> If you are setting your own sysroot, are you using a toolchain file?
> You could put your set_property() command in your toolchain file if
> you're using one.
> Those techniques aside, it's interesting that you need to add this
> manual workaround at all. I suspect this code might be why it is
> being turned off for you, but without more detail about your build
> setup, it's hard to say. If you use a toolchain file and set
> CMAKE_SYSTEM_NAME to anything (even the same as the
> CMAKE_HOST_SYSTEM_NAME), CMAKE_CROSSCOMPILING will be TRUE, which I
> suspect would prevent the problem you're seeing.

I was not using a toolchain file, but switching to use one (that set
CMAKE_SYSTEM_NAME) solved the problem.

Thanks!

[Attachment #5 (text/html)]

<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>On \
Tue, 2018-12-18 at 08:22 +1100, Craig Scott wrote:</div><blockquote type="cite" \
style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">If you are \
setting your own sysroot, are you using a toolchain file? You could put your \
set_property() command in your toolchain file if you're using \
one.</blockquote><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; \
border-left:2px #729fcf solid;padding-left:1ex"><div><div>Those techniques aside, \
it's interesting that you need to add this manual workaround at all. I suspect <a \
href="https://gitlab.kitware.com/cmake/cmake/blob/v3.13.2/Modules/Platform/Linux.cmake#L55">this \
code</a> might be why it is being turned off for you, but without more detail about \
your build setup, it's hard to say. If you use a toolchain file and set \
CMAKE_SYSTEM_NAME to anything (even the same as the CMAKE_HOST_SYSTEM_NAME), \
CMAKE_CROSSCOMPILING will be TRUE, which I suspect would prevent the problem you're \
seeing.</div></div></blockquote><div><br></div><div><div>I was not using a toolchain \
file, but switching to use one (that set CMAKE_SYSTEM_NAME) solved the \
problem.</div><div><br></div><div>Thanks!</div></div></body></html>



-- 

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic