Pass the "--no-warn-unused-cli" argument in the buildTarget function
This commit is contained in:
parent
941a3de72e
commit
b3b505c210
|
@ -2,7 +2,7 @@ def buildTarget(String path, String rpmArch = 'noarch', String debArch = 'noarch
|
|||
String packageArch = isPackageArchDeb ? debArch : rpmArch;
|
||||
// Note: CMake 3.20 or higher is needed
|
||||
cmakeBuild buildDir: "cmake-build-${packageArch}", buildType: 'release', cleanBuild: true, installation: 'Latest',
|
||||
cmakeArgs: "-DCMAKE_C_COMPILER=/usr/bin/${path}-gcc -DCMAKE_CXX_COMPILER=/usr/bin/${path}-g++ -DCMAKE_LINKER=/usr/bin/${path}-ld.gold -DCMAKE_AR=/usr/bin/${path}-ar -DCMAKE_RC_COMPILER=/usr/bin/${path}-windres -DCPACK_RPM_PACKAGE_ARCHITECTURE=${rpmArch} -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=${debArch} -DCXX_TARGET=${packageArch} -DCPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS=/usr/${path}/lib/ -DCCACHE_PRESENT=False"
|
||||
cmakeArgs: "--no-warn-unused-cli -DCMAKE_C_COMPILER=/usr/bin/${path}-gcc -DCMAKE_CXX_COMPILER=/usr/bin/${path}-g++ -DCMAKE_LINKER=/usr/bin/${path}-ld.gold -DCMAKE_AR=/usr/bin/${path}-ar -DCMAKE_RC_COMPILER=/usr/bin/${path}-windres -DCPACK_RPM_PACKAGE_ARCHITECTURE=${rpmArch} -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=${debArch} -DCXX_TARGET=${packageArch} -DCPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS=/usr/${path}/lib/ -DCCACHE_PRESENT=False"
|
||||
cmake arguments: "--build ./cmake-build-${packageArch} --target ybcon", installation: 'Latest'
|
||||
sh "/usr/bin/${path}-strip ./cmake-build-${packageArch}/ybcon"
|
||||
cpack installation: 'Latest', workingDir: "cmake-build-${packageArch}"
|
||||
|
|
Loading…
Reference in New Issue