Cppcmcconfig utility

Command-line arguments

Usage: cppcmcconfig [options]

Print and/or change MinGW-w64 Boost configuration on Windows for cppcmc. If the program is started without options, it prints current values without making changes. The program can be launched from any directory. It will use CMAJOR_ROOT environment variable to find out locations of the configuration files.

Long option Short option Description
‑‑boost‑lib‑dir=BOOST_LIB_DIR ‑L=BOOST_LIB_DIR where BOOST_LIB_DIR is an absolute path to the subdirectory whose name is lib that is under the Boost installation directory. It contains *.a files. Effect: configures the Boost lib-directory for cppcmc.
‑‑boost‑include‑dir=BOOST_INCLUDE_DIR ‑I=BOOST_INCLUDE_DIR where BOOST_INCLUDE_DIR is an absolute path to the subdirectory whose name is boost‑1_XX that is under the subdirectory whose name is include that is under the Boost installation directory. It contains a subdirectory whose name is boost. Effect: configures the Boost include-directory for cppcmc.
‑‑boost‑version=BOOST_VERSION_NUMBER ‑V=BOOST_VERSION_NUMBER where BOOST_VERSION_NUMBER is the version number of Boost in format "1.XX" or "1_XX" Effect: configures the Boost version number for cppcmc.

Example 1

To see current configuration use the following command:

        cppcmcconfig
    

The utility prints e.g.:

    info: CMAJOR_ROOT=C:/cmajor

    BOOST_LIB_DIR:
    info: C:/cmajor/config/compiler-config.xml found.
    info: boost lib-directory (1/1) path is C:/mingw-boost/lib

    BOOST_INCLUDE_DIR:
    info: C:/cmajor/rts/build/gcc/Makefile.common found.
    info: boost include-directory (1/2) path is C:/mingw-boost/include/boost-1_73

    info: C:/cmajor/rts/build/clang/Makefile.common found.
    info: boost include-directory (2/2) path is C:/mingw-boost/include/boost-1_73

    BOOST_VERSION_NUMBER:
    info: C:/cmajor/config/tool-chains.json found.
    info: boost version (1/6) is 1_73
    info: boost version (2/6) is 1_73
    info: boost version (3/6) is 1_73
    info: boost version (4/6) is 1_73
    info: boost version (5/6) is 1_73
    info: boost version (6/6) is 1_73
    

Example 2

To configure boost version 1.73 that is built using MinGW-w64 gcc and installed to directory C:\mingw-boost use the following command:

    cppcmcconfig --boost-lib-dir=C:/mingw-boost/lib --boost-include-dir=C:/mingw-boost/include/boost-1_73 --boost-version=1.73