mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 06:47:08 -05:00
8065a686dd
Fixes: #18386
8 lines
288 B
CMake
8 lines
288 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
project(env-export-compile-commands C)
|
|
|
|
# Add target with a source file to make sure compile_commands.json gets
|
|
# generated.
|
|
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/main.c)
|
|
add_executable(env-export-compile-commands ${CMAKE_CURRENT_BINARY_DIR}/main.c)
|