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:
Edward Hennis
2016-11-03 14:50:47 -04:00
committed by Nik Bougalis
parent 4b261b12a4
commit 361917e902
4 changed files with 176 additions and 166 deletions

View File

@@ -23,6 +23,7 @@ environment:
# target: msvc.debug
- build: cmake
target: msvc.debug
buildconfig: Debug
os: Visual Studio 2015
@@ -88,7 +89,7 @@ build_script:
New-Item -ItemType Directory -Force -Path "build/$cmake_target"
Push-Location "build/$cmake_target"
cmake -G"Visual Studio 14 2015 Win64" -Dtarget="$cmake_target" ../..
msbuild /m "rippled.vcxproj"
cmake --build . --config $env:buildconfig
Pop-Location
}
@@ -102,7 +103,7 @@ after_build:
}
else
{
$exe="build/$cmake_target/Debug/rippled"
$exe="build/$cmake_target/$env:buildconfig/rippled"
}
"Exe is at $exe"