File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 2323
2424 - name : Build
2525 run : |
26- cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
26+ cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCMAKE_UNITY_BUILD=ON
2727 cmake --build build --config ${{ env.BUILD_TYPE }} --parallel
2828 cmake --install build --prefix ./install --config ${{ env.BUILD_TYPE }}
2929
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ set(CMKR_TAG "archive_52671dcf" CACHE STRING "cmkr git tag (this needs to be ava
1111# Set these from the command line to customize for development/debugging purposes
1212set (CMKR_EXECUTABLE "" CACHE FILEPATH "cmkr executable" )
1313set (CMKR_SKIP_GENERATION OFF CACHE BOOL "skip automatic cmkr generation" )
14+ set (CMKR_BUILD_TYPE "Debug" CACHE STRING "cmkr build configuration" )
1415
1516# Disable cmkr if generation is disabled
1617if (DEFINED ENV{CI} OR CMKR_SKIP_GENERATION OR CMKR_BUILD_SKIP_GENERATION)
@@ -86,18 +87,19 @@ else()
8687 --no -warn-unused-cli
8788 "${CMKR_DIRECTORY} "
8889 "-B${CMKR_DIRECTORY} /build"
89- "-DCMAKE_BUILD_TYPE=Release"
90+ "-DCMAKE_BUILD_TYPE=${CMKR_BUILD_TYPE} "
91+ "-DCMAKE_UNITY_BUILD=ON"
9092 "-DCMAKE_INSTALL_PREFIX=${CMKR_DIRECTORY} "
9193 "-DCMKR_GENERATE_DOCUMENTATION=OFF"
9294 )
9395 cmkr_exec("${CMAKE_COMMAND} "
9496 --build "${CMKR_DIRECTORY} /build"
95- --config Release
97+ --config " ${CMKR_BUILD_TYPE} "
9698 --parallel
9799 )
98100 cmkr_exec("${CMAKE_COMMAND} "
99101 --install "${CMKR_DIRECTORY} /build"
100- --config Release
102+ --config " ${CMKR_BUILD_TYPE} "
101103 --prefix "${CMKR_DIRECTORY} "
102104 --component cmkr
103105 )
You can’t perform that action at this time.
0 commit comments