Some recent configuration change (either upgrading to Sierra or CMake 3.5.0) 
has prompted the following warning when running Cmake on a particular project:

================
CMake Error in xxxxxxxxxxxx/CMakeLists.txt:
  No known features for CXX compiler

  "Clang"

  version 3.5.0.
==============

This project uses a mixture of Fortran and C++ - the Fortran compiler is 
GFortran, and the C++ compiler is a custom clang with OpenMP support, supplied 
by Homebrew (as is CMake). I assume the error is somehow related to using a 
non-Apple Clang, but prior to upgrading either Xcode/the OS to Sierra/to Cmake 
3.5, the message did not appear. (When I say ‘custom’, it’s simply that Apple 
choose to disable OpenMP in their official builds shipped with Xcode, the 
compiler I’m using is the stock mainline clang with OpenMP support re-enabled)

The message is repeated for each CMakeList.txt in the project, and of course 
I’ve googled it, but can only find references to unsupported compilers, when 
this system was introduced. Is there an issue with my CmakeLists.txt files, or 
some missing configuration file in Cmake, or something else again happening?

Running ‘-v’ on the OpenMP clang from Homebrew reports:

=================
clang-omp -v
clang version 3.5.0 
Target: x86_64-apple-darwin16.0.0
Thread model: posix
===============

I run Cmake with a command like: (in my build dir)

CC=/usr/local/bin/clang-omp CXX=/usr/local/bin/clang-omp++  cmake ../my-project/

Any hints appreciated!

Kind regards,
James

--
James Turner - Senior Software Developer
KDAB - The Qt, C++ and OpenGL Experts




Attachment: smime.p7s
Description: S/MIME cryptographic signature

-- 

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

Reply via email to