Skip to content

Commit

Permalink
CMake unity and nonunity builds per project (RIPD-1326):
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ximinez authored and nbougalis committed Nov 9, 2016
1 parent 4b261b1 commit 361917e
Show file tree
Hide file tree
Showing 4 changed files with 182 additions and 172 deletions.
5 changes: 5 additions & 0 deletions Builds/CMake/CMakeFuncs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ macro(setup_build_cache)
set(CMAKE_CONFIGURATION_TYPES
DebugClassic
ReleaseClassic)
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set(CMAKE_BUILD_TYPE DebugClassic)
elseif(${CMAKE_BUILD_TYPE} STREQUAL "Release")
set(CMAKE_BUILD_TYPE ReleaseClassic)
endif()
endif()

set(CMAKE_CONFIGURATION_TYPES
Expand Down
Loading

0 comments on commit 361917e

Please sign in to comment.