Skip to content

Commit f5a7c8a

Browse files
committed
CMake cleanup
1 parent 7bef0ab commit f5a7c8a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,10 @@ if(directxmath_FOUND)
510510
endforeach()
511511
endif()
512512

513+
if(TOOL_EXES)
514+
message("INFO: Building tools: ${TOOL_EXES}")
515+
endif()
516+
513517
if(MSVC)
514518
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
515519
target_compile_options(${t} PRIVATE /Wall /GR-)
@@ -570,6 +574,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
570574
endif()
571575

572576
if(ENABLE_CODE_ANALYSIS)
577+
message(STATUS "Building with Code Analysis (PREFIX)")
573578
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
574579
target_compile_options(${t} PRIVATE /analyze /WX)
575580
endforeach()

CMakePresets.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@
353353
{ "name": "x64-Debug-ICX" , "description": "Intel oneAPI Compiler (Debug) with DX12", "inherits": [ "base", "x64", "Debug", "IntelLLVM" ] },
354354
{ "name": "x64-Release-ICX" , "description": "Intel oneAPI Compiler (Release) with DX12", "inherits": [ "base", "x64", "Release", "IntelLLVM" ] },
355355

356-
{ "name": "x64-Fuzzing" , "description": "MSVC for x64 (Release) with ASan", "inherits": [ "base", "x64", "Release", "MSVC", "Fuzzing" ] }
356+
{ "name": "x64-Fuzzing" , "description": "MSVC for x64 (Release) with ASan", "inherits": [ "base", "x64", "Release", "MSVC", "Fuzzing" ] },
357+
{ "name": "x64-Analyze" , "description": "MSVC for x64 (Debug) with DX12 using /analyze", "inherits": [ "base", "x64", "Debug", "MSVC" ], "cacheVariables": { "ENABLE_CODE_ANALYSIS": true } }
357358
],
358359
"testPresets": [
359360
{ "name": "x64-Debug" , "configurePreset": "x64-Debug" },

0 commit comments

Comments
 (0)