CMake generate compile commands for compatibility with external tools

This commit is contained in:
nsubiron 2018-07-19 12:43:21 +02:00
parent a905170a98
commit 5a8bb66c5d
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ if ${BUILD_SERVER} ; then
-DCMAKE_BUILD_TYPE=Server \
-DCMAKE_TOOLCHAIN_FILE=${LIBCPP_TOOLCHAIN_FILE} \
-DCMAKE_INSTALL_PREFIX=${LIBCARLA_INSTALL_SERVER_FOLDER} \
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
${CARLA_ROOT_FOLDER}
fi
@ -112,6 +113,7 @@ if ${BUILD_CLIENT} ; then
-DCMAKE_BUILD_TYPE=Client \
-DCMAKE_TOOLCHAIN_FILE=${LIBSTDCPP_TOOLCHAIN_FILE} \
-DCMAKE_INSTALL_PREFIX=${LIBCARLA_INSTALL_CLIENT_FOLDER} \
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
${CARLA_ROOT_FOLDER}
fi