Skip to content

Commit ad979e7

Browse files
authored
export compile commands if top level (#1851)
1 parent eb158ab commit ad979e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ project(
1111
include(cmake/project-is-top-level.cmake)
1212
include(cmake/variables.cmake)
1313

14+
if (PROJECT_IS_TOP_LEVEL)
15+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
16+
endif()
17+
1418
add_library(glaze_glaze INTERFACE)
1519
add_library(glaze::glaze ALIAS glaze_glaze)
1620

0 commit comments

Comments
 (0)