CMake command line options begin with the prefix -D and consist of the option name, an equals sign ("="), and an option value.

CMake has a few standard command line options that may be helpful when building Hercules.  These standard options, which can be used with any CMake project, complement the CMake Hercules Build Options that are described in Build Options.

CMAKE_C_FLAGS=  "<c-flags>"

Provide additional c compiler command line options. Any string provided here is placed before any c compiler flags generated by CMake and is used during CMake probes of target environment capabilities. This allows you to specify non-default locations for the libraries needed by Hercules, such as Regina Rexx and Zip2 compression. 

The string specified here will become part of the output to the generator that will be used to build Hercules.  

CMAKE_INSTALL_PREFIX=  <dirname>

Defines the installation path prefix for Hercules.  The default varies by target system.

The value of this option is used when doing make install or the equivalent command for the generator being used. If you always execute Hercules from the build directory, this option has no effect. 

See the CMake documentation page for CMAKE_INSTALL_PREFIX for more information. 

 



This web page Copyright © 2017 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.