On Fri, Feb 06, 2015 at 07:01:55 +0100, Christoph Grüninger wrote:
> would you mind to tackle issue 9220 "enable_language(.... OPTIONAL)
> signature does not work correctly"? It's a shame that CMake cannot
> properly detect optional Fortran for more than 5 years! The workaround
> from Eigen works fine for me, but it's still embarrassing.
>
> BTW, is there a way to disable the optional Fortran by a flag to CMake?
> I couldn't find any...
Here is a commit which I haven't worked on for a while which delays the
error until you request an actual build of a Fortran object:
https://github.com/mathstuf/CMake/commit/880d783bf7fbd986b8a50a712e69ff40abbcfa07
While not the OPTIONAL signature, it is more accurate. Let me know how
it works for you.
--Ben
--
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