-
Notifications
You must be signed in to change notification settings - Fork 70
CMake Herc3x
Wiki ▸ CMake Build Logic ▸ CMake Scripts ▸ Herc3x.cmake
The Herc3x scripts, one per supported compiler, set the compiler flags as needed to implement the build options selected by the builder for each supported configuration. Not all build options cause c compiler flags to be set.
- Herc31_CoptsAppleGNU.cmake - gcc on very old macOS systems
- Herc31_CoptsClang.cmake - clang on UNIX-like systems and macOS
- Herc31_CoptsGNU.cmake - gcc on UNIX-like systems
- Herc31_CoptsMSVC.cmake - Microsoft Visual Studio C (MVSC)
- Herc31_CoptsUnknown.cmake - unrecognized compiler
For known c compilers, optimization flags are also set for Release build configurations. These may be as specified by the builder in -DOPTIMIZATION=\<string>
or the script may automatically determine appropriate optimization flags based on the target processor and c compiler.
Automatic optimization is not possible for unrecognized c compilers, although the builder can provide an optimization string and/or additional c compiler options.
This Wiki page Copyright © 2018 by Stephen R. Orso. This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.