mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-19 18:15:50 +00:00
CMake unity and nonunity builds per project (RIPD-1326):
* Still respects "-Dtarget" unity/nonunity selection. Still defaults to unity. * Adds a new target (rippled_classic or rippled_unity) depending on unity/nonunity selection. * New target does not build by default. eg. Use `cmake --build . -target rippled_classic` * Copy all config variables (Debug/Release to DebugClassic/ReleaseClassic) for nonunity builds * CI uses the more generic "cmake --build" command
This commit is contained in:
committed by
Nik Bougalis
parent
4b261b12a4
commit
361917e902
@@ -19,7 +19,7 @@ if [[ ${BUILD:-scons} == "cmake" ]]; then
|
||||
mkdir -p "build/${CMAKE_TARGET}"
|
||||
pushd "build/${CMAKE_TARGET}"
|
||||
cmake ../.. -Dtarget=$CMAKE_TARGET
|
||||
make -j${NUM_PROCESSORS:-2} ${APP}
|
||||
cmake --build . -- -j${NUM_PROCESSORS:-2}
|
||||
popd
|
||||
export APP_PATH="$PWD/build/${CMAKE_TARGET}/${APP}"
|
||||
echo "using APP_PATH: $APP_PATH"
|
||||
|
||||
Reference in New Issue
Block a user