Skip to content

Commit 785ba14

Browse files
committed
Added options.cmake, with CMAKE_EXPORT_COMPILE_COMMANDS ON
This commit solves TheLartians#170 It adds one options.cmake file to allow for flags configuration. The only flag added so far is CMAKE_EXPORT_COMPILE_COMMANDS To test: cmake -S all -B build/ find . -name compile_commands.json --> ./build/compile_commands.json
1 parent 12cf5de commit 785ba14

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

all/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ cmake_minimum_required(VERSION 3.14...3.22)
55

66
project(BuildAll LANGUAGES CXX)
77

8+
include(../cmake/options.cmake)
89
include(../cmake/tools.cmake)
910

1011
# needed to generate test target

cmake/options.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

0 commit comments

Comments
 (0)