-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add first CMakePresets.json Co-authored-by: Johan Mabille <[email protected]>
- Loading branch information
1 parent
77bbec5
commit 793e299
Showing
1 changed file
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |