[CMake] CMake 3.11.3: set properties on the command line?

Paul Smith paul at mad-scientist.net
Tue Jan 22 15:00:58 EST 2019


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190122/3b83b3cb/attachment.html>


More information about the CMake mailing list