build-cpp / cmkr

Modern build system based on CMake and TOML.
https://cmkr.build
MIT License
439 stars 27 forks source link

Add offline mode to `cmkr.cmake` #86

Open mrexodia opened 1 year ago

mrexodia commented 1 year ago

Add an option to use cmkr.exe from the repository:

set(CMKR_PREBUILT_PATH "${CMAKE_PROJECT_SOURCE_DIR}")

This should use ${CMAKE_PROJECT_SOURCE_DIR}/cmkr.exe instead of cloning from git. If the prebuilt is not found it should built it there. To aid with version updates there should be a version check too.