Skip to content

Building Khiops

Felipe Olmos edited this page Nov 10, 2023 · 7 revisions

(In Progress)

See the development environment setup page before executing any of these steps.

Default Build Settings

Khiops is built with CMake. For convenience and reproducibility, we provide standard configurations to build in each platform by means of CMake presets. The presets for each platform are:

  • Windows

    • windows-msvc-debug
    • windows-msvc-release
  • Linux

    • linux-gcc-debug
    • linux-gcc-release
  • macOS

    • macos-clang-debug
    • macos-clang-release

So to execute a full release build you run the following commands:

# Windows
cmake --preset windows-msvc-release
cmake --build --preset windows-msvc-release

# Linux
cmake --preset linux-gcc-release
cmake --build --preset linux-gcc-release

# macOS
cmake --preset macos-clang-release
cmake --build --preset macos-clang-release

Custom Options

If want to use your own settings, other than standard ones (ex. CMAKE_CXX_COMPILER, -G), we provide the following custom options in form of flags -D:

  • MPI (default ON)
    • Whether to build with MPI support
  • TESTING (default OFF)
    • Whether to build and run the unit tests with googletest
  • BUILD_LEX_YACC (default OFF)
    • Whether to rebuild the JSON and Khiops Dictionary parsers
    • Requires a Lex/Yacc installation (ex. Flex/Bison)
  • BUILD_JARS (default ON)
    • Whether to build the JARs implementing the Khiops Desktop GUI
  • C11 (default ON)
    • Whether to use the C++11 standard.

The presets mentioned above take the default values of these options.