mirror of
https://github.com/openXC7/prjxray.git
synced 2026-08-29 01:13:57 +02:00
third_party: Add sanitizers-cmake module
Signed-off-by: Tomasz Michalak <[email protected]>
This commit is contained in:
@@ -22,3 +22,6 @@
|
||||
[submodule "third_party/yosys"]
|
||||
path = third_party/yosys
|
||||
url = https://github.com/YosysHQ/yosys
|
||||
[submodule "third_party/sanitizers-cmake"]
|
||||
path = third_party/sanitizers-cmake
|
||||
url = https://github.com/arsenm/sanitizers-cmake.git
|
||||
|
||||
@@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.5.0)
|
||||
project(prjxray)
|
||||
option(PRJXRAY_BUILD_TESTING "" OFF)
|
||||
|
||||
# Add sanitizers-cmake package
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/third_party/sanitizers-cmake/cmake" ${CMAKE_MODULE_PATH})
|
||||
find_package(Sanitizers)
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE Release CACHE STRING
|
||||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
|
||||
|
||||
+1
Submodule third_party/sanitizers-cmake added at 99e159ec9b
Reference in New Issue
Block a user