mirror of https://github.com/YosysHQ/abc.git
Refactor(cmake): Generate compilation database
Signed-off-by: wjrforcyber <wjrforcyber@163.com>
This commit is contained in:
parent
b09305204d
commit
504f604d2a
|
|
@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.5.0)
|
|||
include(CMakeParseArguments)
|
||||
include(CheckCCompilerFlag)
|
||||
include(CheckCXXCompilerFlag)
|
||||
# Generate compilation database compile_commands.json
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
# Default c++ standard used unless otherwise specified in target_compile_features.
|
||||
set(CMAKE_CXX_STANDARD 17 CACHE STRING "the C++ standard to use for this project")
|
||||
|
|
|
|||
Loading…
Reference in New Issue