Skip to content
Stephen Orso edited this page May 13, 2018 · 1 revision

WikiCMake Build LogicCMake ScriptsHerc3x.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.

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.