The problem that was reported in that other thread was due to having policy CMP0025 set to a false value, once that policy was enabled compiler detection worked properly.
I would make sure the same isn't happening for you. I have attached a simple CMakeList.txt file you can use to determine if potentially you are seeing the same policy issue. On Tue, Jan 3, 2017 at 9:21 AM, René J.V. Bertin <rjvber...@gmail.com> wrote: > Hi, > > I just had a run-in with a CMake file from Qt5 in a project I've been > building with a locally built Clang 3.9 version, affectionately called > clang-mp-3.9 . I got the cryptic message > > CMake Error in src/platformtheme/CMakeLists.txt: > No known features for CXX compiler > > "Clang" > > version 3.9.0. > > > Would you consider adding support for non-Apple clang versions on Mac too, > and who would best request that, a Qt dev who considers the cxx_decltype test > crucial, or the 1st user for whom that breaks his builds (i.e. me)? > > I see this has already come up for HB: > https://cmake.org/pipermail/cmake/2016-December/064719.html > > > Thanks, > René Bertin > -- > > 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: > http://public.kitware.com/mailman/listinfo/cmake-developers
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) cmake_policy(SET CMP0025 NEW) project(t C CXX) cmake_policy(GET CMP0025 appleClangPolicy) if(NOT appleClangPolicy STREQUAL NEW) message(STATUS "cmake_determine_compile_features was not enabled as policy 0025 needs to be set to NEW") endif() message(STATUS "CMAKE_CXX_COMPILE_FEATURES: ${CMAKE_CXX_COMPILE_FEATURES}")
-- 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: http://public.kitware.com/mailman/listinfo/cmake-developers