build-cpp / cmkr

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

Fails to run when directory has `+` in its name #61

Closed TheSunCat closed 2 years ago

TheSunCat commented 2 years ago

Hi! I love this tool, but I ran into an issue when someone tried to compile a program:

cmkr fails to run when the path to the directory it's in has a + in its name, with the following error:

RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.

CMake Error at cmkr.cmake:53 (if):
  if given arguments:

    "NOT" "CMKR_CACHED_EXECUTABLE" "STREQUAL" "CMKR_EXECUTABLE" "AND" "CMKR_EXECUTABLE" "MATCHES" "^/home/apm/Documents/C++/ReverseAbductionSimulator/build/_cmkr"

  Regular expression "^/home/apm/Documents/C++/ReverseAbductionSimulator/build/_cmkr" cannot compile
Call Stack (most recent call first):
  CMakeLists.txt:12 (include)

-- Configuring incomplete, errors occurred!
mrexodia commented 2 years ago

Thanks for the report! I’ll fix this soon, shouldn’t be too difficult.

mrexodia commented 2 years ago

This has been fixed in 0.2.14. For your project you can replace cmkr.cmake with the one here.