Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/build/cmake-presets-vs.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ Instead, enable and disable AddressSanitizer by setting the required compiler an

You can add the following sample to *`CMakeLists.txt`* to enable or disable AddressSanitizer for a target:

```cmd
```txt
option(ASAN_ENABLED "Build this target with AddressSanitizer" ON)

if(ASAN_ENABLED)
Expand Down
2 changes: 1 addition & 1 deletion docs/build/cmake-projects-in-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ When you build for Windows using the MSVC compiler, CMake projects have support

When you build for Windows with the MSVC compiler, CMake projects have support for Edit and Continue. Add the following code to your *`CMakeLists.txt`* file to enable Edit and Continue.

```
```txt
if(MSVC)
target_compile_options(<target> PUBLIC "/ZI")
target_link_options(<target> PUBLIC "/INCREMENTAL")
Expand Down