<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>