Updated build script

This commit is contained in:
WolverinDEV 2019-07-05 21:26:44 +02:00
parent 2ac12a77b8
commit ca8b46b590
1 changed files with 4 additions and 2 deletions

View File

@ -45,9 +45,11 @@ function compile_native() {
[[ ! -z "$tearoot_cmake_module" ]] && _arguments="${_arguments} -DCMAKE_MODULE_PATH=\"$tearoot_cmake_module\""
[[ ! -z "$tearoot_cmake_config" ]] && _arguments="${_arguments} -DCMAKE_PLATFORM_INCLUDE=\"$tearoot_cmake_config\""
[[ ! -z "$traroot_library" ]] && _arguments="${_arguments} -DLIBRARY_PATH=\"$traroot_library\""
echo "Native arguments: ${_arguments:1}"
cmake ../../ -DCMAKE_BUILD_TYPE=RelWithDebInfo ${_arguments:1}
_command="cmake ../../ -DCMAKE_BUILD_TYPE=RelWithDebInfo ${_arguments}"
echo "Executing cmake command $_command"
eval ${_command}
check_err_exit ${project_name} "Failed create build targets!"
cmake --build `pwd` --target teaclient_connection -- -j 12