[CMake] 'No known features for CXX compiler' warning with custom Clang
James Turner
james.turner at kdab.com
Tue Dec 20 11:55:32 EST 2016
> On 19 Dec 2016, at 09:51, James Turner <james.turner at kdab.com> wrote:
>
> In my case there is no feature_tests.cxx generated at all.
For the benefit of posterity, Robert very kindly figured this out: the problem is I did not have CMP0025 set, and the minimum CMake version was set < 3.3
This breaks compiler feature detection with a custom Clang. Setting the policy to NEW makes everything work as expected.
Kind regards,
James
--
James Turner - Senior Software Developer
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3868 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161220/a29e83a1/attachment.bin>
More information about the CMake
mailing list