Use Cmake -build to compile

This commit is contained in:
James Turner 2018-10-23 12:10:01 +01:00
parent bf5ec63ac3
commit ffdd4f062f

View File

@ -24,15 +24,14 @@ pushd sgBuild
cmake -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist -DCMAKE_BUILD_TYPE=RelWithDebInfo ../simgear
# compile
make
cmake --build . -j
if [ $? -ne '0' ]; then
echo "make simgear failed"
exit 1
fi
make install
cmake --build . --target install
popd
@ -48,14 +47,14 @@ fi
cmake -DFG_BUILD_TYPE=$FGBUILDTYPE -DCMAKE_INSTALL_PREFIX:PATH=$WORKSPACE/dist -DCMAKE_BUILD_TYPE=RelWithDebInfo ../flightgear
make
cmake --build . -j
if [ $? -ne '0' ]; then
echo "make flightgear failed"
exit 1
fi
make install
cmake --build . --target install
popd