From e8c6ccb698e67ec9ed9d02a041221c65982b9f82 Mon Sep 17 00:00:00 2001 From: Duncan Ogilvie Date: Wed, 26 Jan 2022 01:07:18 +0100 Subject: [PATCH] Minor improvements to bootstrapping code --- cmake/cmkr.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/cmkr.cmake b/cmake/cmkr.cmake index 1ed1435..8b61d26 100644 --- a/cmake/cmkr.cmake +++ b/cmake/cmkr.cmake @@ -15,6 +15,7 @@ endif() set(CMKR_EXECUTABLE "" CACHE FILEPATH "cmkr executable") set(CMKR_SKIP_GENERATION OFF CACHE BOOL "skip automatic cmkr generation") set(CMKR_BUILD_TYPE "Debug" CACHE STRING "cmkr build configuration") +mark_as_advanced(CMKR_REPO CMKR_TAG CMKR_EXECUTABLE CMKR_SKIP_GENERATION CMKR_BUILD_TYPE) # Disable cmkr if generation is disabled if(DEFINED ENV{CI} OR CMKR_SKIP_GENERATION OR CMKR_BUILD_SKIP_GENERATION) @@ -62,6 +63,8 @@ if(DEFINED ENV{CMKR_CACHE} AND EXISTS "$ENV{CMKR_CACHE}") if(NOT CMKR_DIRECTORY_PREFIX MATCHES "\\/$") set(CMKR_DIRECTORY_PREFIX "${CMKR_DIRECTORY_PREFIX}/") endif() + # Build in release mode for the cache + set(CMKR_BUILD_TYPE "Release") else() set(CMKR_DIRECTORY_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/_cmkr_") endif()