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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user