Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common CMake presets #2532

Merged
merged 2 commits into from
Jun 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 122 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"buildPresets": [
{
"configurePreset": "mamba-shared-debug",
"name": "mamba-shared-debug"
}
],
"configurePresets": [
{
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_AR": "$env{AR}",
"CMAKE_CXX_COMPILER": "$env{CXX}",
"CMAKE_CXX_FLAGS_DEBUG": "$env{DEBUG_CXXFLAGS}",
"CMAKE_CXX_FLAGS_RELEASE": "$env{CXXFLAGS}",
"CMAKE_C_COMPILER": "$env{CC}",
"CMAKE_C_FLAGS_DEBUG": "$env{DEBUG_CFLAGS}",
"CMAKE_C_FLAGS_RELEASE": "$env{CFLAGS}",
"CMAKE_EXE_LINKER_FLAGS": "$env{LDFLAGS}",
"CMAKE_Fortran_COMPILER": "$env{FC}",
"CMAKE_Fortran_FLAGS_DEBUG": "$env{DEBUG_FORTRANFLAGS}",
"CMAKE_Fortran_FLAGS_RELEASE": "$env{FORTRANFLAGS}",
"CMAKE_INSTALL_LIBDIR": "lib",
"CMAKE_INSTALL_PREFIX": "$env{CONDA_PREFIX}",
"CMAKE_LINKER": "$env{LD}",
"CMAKE_PREFIX_PATH": "$env{CONDA_PREFIX}",
"CMAKE_RANLIB": "$env{RANLIB}",
"CMAKE_STRIP": "$env{STRIP}"
},
"description": "Base profile using conda libraries and compilers",
"displayName": "Conda Base",
"hidden": true,
"name": "conda-base"
},
{
"cacheVariables": {
"CMAKE_AR": "$env{GCC_AR}",
"CMAKE_CXX_COMPILER": "$env{GXX}",
"CMAKE_C_COMPILER": "$env{GCC}",
"CMAKE_Fortran_COMPILER": "$env{GFORTRAN}",
"CMAKE_LINKER": "$env{LD_GOLD}",
"CMAKE_RANLIB": "$env{GCC_RANLIB}"
},
"description": "Base profile using conda libraries and GNU compilers",
"displayName": "Conda Default",
"hidden": true,
"inherits": [
"conda-base"
],
"name": "conda-gnu"
},
{
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_C_COMPILER": "clang",
"CMAKE_Fortran_COMPILER": "lfortran",
"CMAKE_LINKER": "lld"
},
"description": "Base profile using conda libraries and LLVM compilers",
"displayName": "Conda Clang",
"hidden": true,
"inherits": [
"conda-base"
],
"name": "conda-llvm"
},
{
"cacheVariables": {
"BUILD_LIBMAMBA": "ON",
"BUILD_LIBMAMBAPY": "ON",
"BUILD_LIBMAMBA_TESTS": "ON",
"BUILD_MAMBA_PACKAGE": "ON",
"BUILD_MICROMAMBA": "ON",
"BUILD_MICROMAMBA_SERVER": "ON",
"CMAKE_CXX_EXTENSIONS": "OFF",
"CMAKE_CXX_STANDARD": "17",
"CMAKE_CXX_STANDARD_REQUIRED": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"description": "Base profile for development in Mamba",
"displayName": "Mamba dev",
"hidden": true,
"name": "mamba-dev",
"warnings": {
"dev": true,
"unusedCli": true
}
},
{
"cacheVariables": {
"BUILD_SHARED": "ON"
},
"hidden": true,
"name": "mamba-shared"
},
{
"cacheVariables": {
"BUILD_STATIC": "ON"
},
"hidden": true,
"name": "mamba-static"
},
{
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
},
"hidden": true,
"name": "mamba-debug"
},
{
"displayName": "Mamba shared debug",
"inherits": [
"conda-base",
"mamba-dev",
"mamba-shared",
"mamba-debug"
],
"name": "mamba-shared-debug"
}
],
"version": 4
}