Works with 3.8.2. Compilers specified by
-DCMAKE_C_COMPILER:FILEPATH='C:/Program Files (x86)/Intel/Composer XE 2015/bin/intel64/icl.exe' -DCMAKE_CXX_COMPILER:FILEPATH='C:/Program Files (x86)/Intel/Composer XE 2015/bin/intel64/icl.exe' -DCMAKE_Fortran_COMPILER:FILEPATH='C:/Program Files (x86)/Intel/Composer XE 2015/bin/intel64/ifort.exe' The cmake code is include(FortranCInterface) FortranCInterface_HEADER( ${CMAKE_BINARY_DIR}/FCMangle.h MACRO_NAMESPACE "FC_" SYMBOL_NAMESPACE "FC_" SYMBOLS mysub mymod:my_sub ) The relevant output is -- Detecting Fortran/C Interface -- Detecting Fortran/C Interface - Failed to compile CMake Warning (dev) at C:/winsame/cary/usim/contrib-icl15/cmake-3.9.0-ser/share/ cmake-3.9/Modules/FortranCInterface.cmake:309 (message): No FortranCInterface mangling known for mysub Call Stack (most recent call first): scimake/SciFortranChecks.cmake:269 (FortranCInterface_HEADER) scimake/SciInit.cmake:232 (include) CMakeLists.txt:28 (include) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at C:/winsame/cary/usim/contrib-icl15/cmake-3.9.0-ser/share/ cmake-3.9/Modules/FortranCInterface.cmake:295 (message): No FortranCInterface mangling known for mymod:my_sub Call Stack (most recent call first): scimake/SciFortranChecks.cmake:269 (FortranCInterface_HEADER) scimake/SciInit.cmake:232 (include) CMakeLists.txt:28 (include) This warning is for project developers. Use -Wno-dev to suppress it. The resulting file is $ cat FCMangle.h #ifndef FC_HEADER_INCLUDED #define FC_HEADER_INCLUDED /*--------------------------------------------------------------------------*/ /* Mangle some symbols automatically. */ #endif Any help appreciated..........John Cary -- 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