1+ {
2+ "version" : 3 ,
3+ "cmakeMinimumRequired" : {"major" : 3 , "minor" : 21 , "patch" : 0 },
4+ "configurePresets" : [
5+ {
6+ "name" : " .base" ,
7+ "hidden" : true ,
8+ "inherits" : [" full" ],
9+ "binaryDir" : " $env{SCRATCHDIR}/build/celeritas-${presetName}" ,
10+ "generator" : " Ninja" ,
11+ "cacheVariables" : {
12+ "BUILD_SHARED_LIBS" : {"type" : " BOOL" , "value" : " ON" },
13+ "CELERITAS_BUILD_DOCS" : {"type" : " BOOL" , "value" : " OFF" },
14+ "CELERITAS_USE_CUDA" : {"type" : " BOOL" , "value" : " OFF" },
15+ "CELERITAS_USE_HIP" : {"type" : " BOOL" , "value" : " OFF" },
16+ "CELERITAS_USE_covfie" : {"type" : " BOOL" , "value" : " OFF" },
17+ "CELERITAS_USE_OpenMP" : {"type" : " BOOL" , "value" : " ON" },
18+ "CELERITAS_USE_MPI" : {"type" : " BOOL" , "value" : " OFF" },
19+ "CELERITAS_USE_VecGeom" : {"type" : " BOOL" , "value" : " OFF" },
20+ "CMAKE_CXX_FLAGS" : " -Wall -Wextra -pedantic -Werror -fdiagnostics-color=always" ,
21+ "CMAKE_CXX_STANDARD" : " 17" ,
22+ "CMAKE_CXX_EXTENSIONS" : {"type" : " BOOL" , "value" : " OFF" },
23+ "CMAKE_EXE_LINKER_FLAGS" : " -Wl,-z,defs" ,
24+ "CMAKE_SHARED_LINKER_FLAGS" : " -Wl,-z,defs" ,
25+ "CMAKE_INSTALL_PREFIX" : " $env{SCRATCHDIR}/install/celeritas-${presetName}" ,
26+ "CMAKE_EXPORT_COMPILE_COMMANDS" : {"type" : " BOOL" , "value" : " ON" }
27+ }
28+ },
29+ {
30+ "name" : " release-orange" ,
31+ "displayName" : " Build with full optimizations (ORANGE)" ,
32+ "inherits" : [" .base" , " .ndebug" ],
33+ "cacheVariables" : {
34+ }
35+ },
36+ {
37+ "name" : " reldeb-orange" ,
38+ "displayName" : " Build with optimizations, but enable host debugging (ORANGE)" ,
39+ "inherits" : [" .base" , " .reldeb" ],
40+ "cacheVariables" : {
41+ "CELERITAS_USE_VecGeom" : {"type" : " BOOL" , "value" : " OFF" }
42+ }
43+ },
44+ {
45+ "name" : " debug-orange" ,
46+ "displayName" : " Build without optimization, enabling full host debugging (ORANGE)" ,
47+ "inherits" : [" .base" , " .debug" ],
48+ "cacheVariables" : {
49+ "CELERITAS_DEVICE_DEBUG" :{"type" : " BOOL" , "value" : " OFF" },
50+ "CELERITAS_USE_VecGeom" : {"type" : " BOOL" , "value" : " OFF" }
51+ }
52+ }
53+ ],
54+ "buildPresets" : [
55+ {
56+ "name" : " .base" ,
57+ "configurePreset" : " .base" ,
58+ "jobs" : 24 ,
59+ "nativeToolOptions" : [" -k0" ]
60+ },
61+ {"name" : " release-orange" , "configurePreset" : " release-orange" , "inherits" : " .base" },
62+ {"name" : " reldeb-orange" , "configurePreset" : " reldeb-orange" , "inherits" : " .base" },
63+ {"name" : " debug-orange" , "configurePreset" : " debug-orange" , "inherits" : " .base" }
64+ ],
65+ "testPresets" : [
66+ {
67+ "name" : " .base" ,
68+ "configurePreset" : " .base" ,
69+ "output" : {"outputOnFailure" : true },
70+ "execution" : {"noTestsAction" : " error" , "stopOnFailure" : false , "jobs" : 24 }
71+ },
72+ {"name" : " release-orange" , "configurePreset" : " release-orange" , "inherits" : " .base" },
73+ {"name" : " reldeb-orange" , "configurePreset" : " reldeb-orange" , "inherits" : " .base" },
74+ {"name" : " debug-orange" , "configurePreset" : " debug-orange" , "inherits" : " .base" }
75+ ]
76+ }
0 commit comments