From b9c99501911ba9c9b4d10dadbcf3895e232afcb3 Mon Sep 17 00:00:00 2001 From: Stephen Gaito Date: Fri, 28 Jun 2019 08:45:05 +0100 Subject: [PATCH] added set\(CMAKE_EXPORT_COMPILE_COMMANDS, ON\) to cmake build system to allow prototype checking tool to work --- .gitignore | 1 + CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 4a09c0f..19fb396 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +compile_commands.json CMakeCache.txt CMakeFiles/* cmake_install.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 135e02f..9ebba7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ # leave this above project(pdf2htmlEX) # set default build type to Release +set(CMAKE_EXPORT_COMPILE_COMMANDS, ON) set(CMAKE_BUILD_TYPE Release CACHE STRING "Build configuration (Debug, Release, RelWithDebInfo, MinSizeRel)") project(pdf2htmlEX)