Hi Victor, have a look at the try_compile() command ( https://cmake.org/cmake/help/v2.8.12/cmake.html#command:try_compile ), especially the second signature (the one which takes SOURCES).
Petr On Tue, Feb 23, 2016 at 11:56 AM, victor sv <victo...@gmail.com> wrote: > Hi all, > > I've seen that in CMake 3.0 appeared the nice CheckFortranSourceCompiles > feature. > > Currently, common SO's like Ubuntu 14 includes CMake 2.8.12.2, but not > CMake 3.0 or higher. I would like to check if a very small Fortran test > program compiles using CMake 2.8.12.2, is this possible? how can i do that? > > Best regards, > VĂctor. > > -- > > 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 >
-- 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