On 5/30/2014 2:44 PM, Michael Jackson wrote:
How is CMake determining if the Intel Compiler is available?
Registry
query or Path query? I tried to export the FC variable but that did not
work either. I guess I'll have to fire up yet-another virtual machine.
was just hoping to bounce back and forth between the compilers on the
same machine.

Thank you for the insight.
Mike Jackson

It uses the check_language macro:

  # if we are not using MSVC without fortran support
  # then just use the usual add_subdirectory to build
  # the fortran library
  check_language(Fortran)
  if(NOT (MSVC AND (NOT CMAKE_Fortran_COMPILER)))
    add_subdirectory(${subdir})
    return()
  endif()

So, if your visual studio supports fortran, it will use it.

-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://www.cmake.org/mailman/listinfo/cmake

Reply via email to