Skip to content

Commit 631eece

Browse files
committed
Add compile commands
1 parent c5548bf commit 631eece

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ project(YSTDLIB_CPP LANGUAGES CXX)
33

44
set(YSTDLIB_CPP_VERSION "0.0.1" CACHE STRING "Project version.")
55

6+
# Enable exporting compile commands
7+
set(CMAKE_EXPORT_COMPILE_COMMANDS
8+
ON
9+
CACHE BOOL
10+
"Enable/Disable output of compile commands during generation."
11+
FORCE
12+
)
13+
614
add_executable(dummy)
715
target_sources(dummy PRIVATE ystdlib/hello.cpp)
816
target_compile_features(dummy PRIVATE cxx_std_20)

0 commit comments

Comments
 (0)