Skip to content
Luau edited this page May 4, 2024 · 14 revisions

Welcome to the minpack-builder wiki!

Important

At the moment, the documentation is in early stages.

Table of Contents

Configuration Options

Tip

Each parameter in the table below can be set by adding "-D<PARAMETER>=<VALUE>" in the command line.

For instance, cmake "-DCMAKE_BUILD_TYPE=Debug" <PARAMETER LIST> would produce a debug build.

Parameter Type Default Value Description
CMAKE_BUILD_TYPE STRING Release The build type.
BUILD_SHARED_LIBS BOOL ON Builds the shared library.
Note: If this value is OFF, then BUILD_STATIC_LIBS must be set ON.
BUILD_STATIC_LIBS BOOL OFF Builds the static library.
Note: If this value is OFF, then BUILD_SHARED_LIBS must be set ON.
MINPACK_VERSION STRING 1.1.0 The version of this build script.
Note: Since it is unlikely to face any change in the source code of minpack, this value makes sense to be interpreted as this build script's version.
USE_DOWNLOAD BOOL ON Allows official files to be downloaded from https://www.netlib.org/minpack to do the build.
Note: If this option is left OFF,
${CMAKE_CURRENT_SOURCE_DIR} is assumed to be the location of minpack source files and copyright.
DOWNLOAD_DIR PATH ${CMAKE_CURRENT_SOURCE_DIR} Destination directory to store files downloaded from https://www.netlib.org/minpack.
Note: This value only makes sense if USE_DOWNLOAD is set ON.
MINPACK_INSTALL_BINDIR PATH ${CMAKE_INSTALL_BINDIR} Installation directory for executables (.dll files on Windows).
Note: This value must be a relative path to
${CMAKE_INSTALL_PREFIX}.
MINPACK_INSTALL_LIBDIR PATH ${CMAKE_INSTALL_LIBDIR} Installation directory for libraries.
Note: This value must be a relative path to
${CMAKE_INSTALL_PREFIX}.
MINPACK_INSTALL_BINDIR PATH ${CMAKE_INSTALL_BINDIR} Installation directory for executables (.dll files on Windows).
Note: This value must be a relative path to
${CMAKE_INSTALL_PREFIX}.
MINPACK_INSTALL_INCLUDEDIR PATH ${CMAKE_INSTALL_INCLUDEDIR} Installation directory for header files.
Note: This value must be a relative path to
${CMAKE_INSTALL_PREFIX}.
MINPACK_INSTALL_DOCDIR PATH ${CMAKE_INSTALL_DOCDIR} Installation directory for documentation.
Note: This value must be a relative path to
${CMAKE_INSTALL_PREFIX}.
MINPACK_INSTALL_PKGCONFIG_DIR PATH "${MINPACK_INSTALL_LIBDIR}/pkgconfig" Installation directory for pkg-config (.pc) files.
Note: This value must be a relative path to
${CMAKE_INSTALL_PREFIX}.

Usage

Since documentation is yet on construction, for now, you can check the usage on Linux, building minpack with GFortran.

Clone this wiki locally