Mark and Juan, Thanks! Between your two suggestions I was able to make something work. My first attempt at using -DCMAKE_TOOLCHAIN_FILE resulted in some error messages that I completely misinterpreted as needing to “re-teach” CMAKE about the Intel compiler. A simple wrapper for the compiler does exactly what was desired.
> On Jul 9, 2018, at 4:40 AM, Marc CHEVRIER <marc.chevr...@gmail.com> wrote: > > You have just to put set command (not cache) for your compiler > (CMAKE_Fortran_COMPILER) and environment variable in a file and specify this > file on cmake command line with option -DCMAKE_TOOLCHAIN_FILE=your-file. > On Jul 8, 2018, at 10:32 PM, Juan E. Sanchez <juan.e.sanc...@gmail.com> wrote: > > Hi, > > Could you create a simple compiler wrapper script, and point the > CMAKE_*_COMPILER variables there: > > #!/bin/bash > export INTEL_LICENSE_FILE=/usr/local/intel/license > /path/to/ifort "$@" > > Regards, > > Juan > -- 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: https://cmake.org/mailman/listinfo/cmake