Turning on compilation_database.json generation

This commit is contained in:
Strahinja Val Markovic 2013-01-19 17:11:39 -08:00
parent c1119c001f
commit 3e25a975ca

View File

@ -20,6 +20,11 @@ project( YouCompleteMe )
option( UNIVERSAL "Build universal mac binary" OFF ) option( UNIVERSAL "Build universal mac binary" OFF )
# Turning on this flag tells cmake to emit a compile_commands.json file.
# This file can be used to load compilation flags into YCM. See here for more
# details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
set( CMAKE_EXPORT_COMPILE_COMMANDS 1 )
# This is needed so that on macs, the library is built in both 32 bit and 64 bit # This is needed so that on macs, the library is built in both 32 bit and 64 bit
# versions. Without this python might refuse to load the module, depending on # versions. Without this python might refuse to load the module, depending on
# how python was built. # how python was built.