Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.22 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.22 KB

asan.cmake

Enable Address Sanitizer globally in your CMake-based project, by download asan.cmake and only add one line in CMakeLists.txt

include(asan.cmake)

Support many compiler platforms:

  • GCC/Linux/Android NDK
  • VS2019
  • VS2022

tsan.cmake

Enable ThreadSanitizer globally in your CMake-based project, by download tsan.cmake and only add one line in CMakeLists.txt

include(tsan.cmake)

summary.cmake

Get a summary message for your current build, including global stuffs and list each target, by download summary.cmake and only add one line in CMakeLists.txt

include(summary.cmake)

msvc_utf8_encoding.cmake

When you write unicode chars (e.g. Chinese characters) in utf-8 encoding source files (.c/.cpp/.h/.hpp), and your command prompt use encodings like /cp936 (due to OS language), it prints garbage. You may avoid that by specify encoding for source files and execution, separately.

Here is the tool you can use, just download msvc_utf8_encoding.cmake (and also QueryCodePage.py if your cmake < 3.24), and only add one line in CMakeLists.txt

include(msvc_utf8_encoding.cmake)