Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Without knowing your build process, I can't tell you how to set a default compiler. There will be an option in XCode as well as options with command-line build tools. IOW, Macs do not have a system-wide default compiler setting that I'm aware of. Here's the official documentation on how to use a different compiler with CMake. May 28, 2020 CMake is a family of tools designed to build, test, and package software. It is used to control the software compilation process using simple platform- and compiler-independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CXX=/path/to/icpc cmake. FC=/path/to/ifort cmake. For a more permanent solution, one can also edit the CMakeLists.txt file: SET(CMAKECCOMPILER /path/to/pgcc)SET(CMAKECXXCOMPILER /path/to/pgc)SET(CMAKEFCCOMPILER /path/to/pgfortran).
Sign upSet Compiler For Cmake Macos Windows 10
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Set Compiler For Cmake Macos 10
commented Dec 1, 2016
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set |
commented Aug 17, 2017
Set Compiler For Cmake Macos 8
#these two lines |
commented Jun 29, 2018
what about this issue processing ? |