third_party: Add sanitizers-cmake module

Signed-off-by: Tomasz Michalak <[email protected]>
This commit is contained in:
Tomasz Michalak
2019-10-08 14:02:13 +02:00
parent daa516585e
commit 7b8561ad6f
3 changed files with 7 additions and 0 deletions
+3
View File
@@ -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
View File
@@ -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."