On 24/10/2014 19:16, Brad King wrote:
Hi Brad,
On 10/24/2014 02:15 PM, Bill Somerville wrote:
Can I just put the patched module in my project Modules directory or do
I have to build the whole CMake project?
No need to recompile. You can just add the two lines directly in your
Modules directory.
Sorry, I am struggling with this. I have copied the
Darwin-GNU-Fortran.cmake file into my project modules directory and
patched it as you suggested. I have tried putting it into a subdirectory
called Platform/ as well. I have added my local modules path to the
CMAKE_MODULE_PATH before the default items. This is set before the
project() command in the project CMakelists.txt but it is not being
picked up. Is there something I am missing or do I need to do this a
different way?
The good news is that it works when I patch the file in the actual CMake
installation although there is an oddity, when I configure the project I
see the messages from those two new function calls in the Fortran checks
but strangely I don't see similar messages from the C and C++ compiler
checks, yet they all seem to work adding the correct options.
-Brad
Regards
Bill.
--
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