[CMake] specifying path for license file for commercial compiler?
Clune, Thomas L. (GSFC-6101)
thomas.l.clune at nasa.gov
Mon Jul 9 09:36:03 EDT 2018
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.chevrier at 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.sanchez at 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
>
More information about the CMake
mailing list