
There is an extensive test suite written for CTest, that may take a while to complete. Parameters can be set all at once or in subsequent calls to cmake - extending or modifying the existing configuration. Use static runtime libraries for Visual Studio compiler on WindowsĮnable sanitizer in debug mode if availableĮnable task processing interface required for concurrent solver Specify a debugging solution by setting the "misc/debugsol" parameter of SCIP IPOPT_DIR, CPLEX_DIR, WORHP_DIR, Readline_DIR. Specify ZIMPL_DIR if not found automaticallyĮ.g. Should worhp be linked specify WORHP_DIR if not found automatically See Available implementations of the LP solver interface for a complete list specify SOPLEX_DIR, CPLEX_DIR, MOSEK_DIR. Requires IPOPT version >= 3.12.0 specify IPOPT_DIR if not found automatically Specify GMP_DIR if not found automatically
Mac check cmake version full#
Following a list of available options, for the full list run For all of these options and parameters you have to use -D=.

Mac check cmake version code#
There are several options that can be passed to the cmake call to modify how the code is built. The main library libscip.so will contain all SCIP sources and won't have dependencies to the other sub-libs. They can be built using the respective targets liblpi, libobjscip, etc. The previously generated sub-libraries like liblpi.so or libobjscip.so are not created by default anymore. The CMake setup tries to follow the established Linux/UNIX compilation conventions to facilitate the use of the libraries in other applications. This is different from the naming convention of the previous Makefile setup that appended the configuration details like OS and third party dependencies directly to the name of the binary or library.

The generated executable and libraries are put in directories bin and lib respectively and will simply be named scip or libscip.so. The initial configuration step checks your environment for available third-party libraries and packages and sets up the configuration accordingly, e.g., disabling support for GMP if not installed. Alternatively, a different LP solver can be specified with the LPS variable, see Modifying a CMake configuration and Available implementations of the LP solver interface.Īfterwards, successive calls to make are going to recompile modified source code, without requiring another call to cmake.

If SoPlex is not installed systemwide, the path to a CMake build directory of SoPlex must be specified (ie one that contains "soplex-config.cmake"). By default, SCIP searches for Soplex as LP solver. From within this directory, run cmake to configure your build, followed by make to compile the code according to the current configuration (this assumes that you chose Linux Makefiles as CMake Generator). Usually this directory is called build or debug or whatever you prefer. CMake uses an out-of-source build, i.e., compiled binaries and object files are separated from the source tree and located in another directory.
