build: Fixed compile_commands.json not exportet

This commit is contained in:
Eberhard Graether
2016-03-16 14:42:28 +01:00
parent 3140b6dbb8
commit d18b6fb873
2 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -13,7 +13,6 @@ include(cmake/licenses.cmake)
# set Standerd build type to Release
set(CMAKE_BUILD_TYPE_INIT "Release")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Variables --------------------------------------------------------------------
@@ -44,6 +43,7 @@ if (UNIX)
endif ()
# Project ----------------------------------------------------------------------
project(${PROJECT_NAME})
#RPATH
@@ -55,6 +55,8 @@ if(UNIX AND NOT APPLE)
include(cmake/external.cmake)
endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Clang ------------------------------------------------------------------------
if (UNIX AND APPLE)
+6
View File
@@ -33,6 +33,12 @@ rm -rf bin/lib/Debug
rm -rf bin/lib/Release
rm -rf bin/test/Debug
rm -rf bin/test/Release
rm -rf bin/gen
rm -rf bin/lib
rm -rf bin/lib_gui
rm -rf bin/lib_license
rm -rf bin/lib_parser
rm -rf bin/license_generator
# Remove log files
find bin/test/data/log -type f -name 'log*' -delete