summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/env-export-compile-commands/CMakeLists.txt
blob: aa6fbfd86d3b0bf7725e2e772507f938d0ddb729 (plain)
1
2
3
4
5
6
7
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)