Skip to content

Commit

Permalink
Add first CMakePresets.json
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed May 25, 2023
1 parent fb3c4c7 commit d515217
Showing 1 changed file with 122 additions and 0 deletions.
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
}

0 comments on commit d515217

Please sign in to comment.