How can I make CMake use GCC instead of Clang on Mac OS X?

后端 未结 4 1193
陌清茗
陌清茗 2020-12-12 16:26

I can\'t find any info on it, but only the other way around (e.g., how to set CMake to use clang).

I\'ve installed gcc-4.8 using brew, setup all dependencies, header

4条回答
  •  遥遥无期
    2020-12-12 16:43

    Just to add that there is also a CMake variable "CMAKE_Fortran_COMPILER" to pick up GNU Fortran rather than clang fortran. But it seems to be missing in the documentation

    cmake -DCMAKE_Fortran_COMPILER=/usr/.../bin/gfortran-6.x.0

提交回复
热议问题