Neutree / c_cpp_project_framework

CMake build system( framework) with kconfig support for C/CPP projects
https://neucrack.com/p/276
MIT License
166 stars 38 forks source link

使用 cmake 编译时的代码版本问题 #7

Closed skb666 closed 12 months ago

skb666 commented 12 months ago

编译命令:

cd examples/demo1
cmake -S. -Bbuild
cmake --build build -t all

使用 cmake 而不是 python 进行编译时,若不指定 CMAKE_BUILD_TYPE ,遇到以下问题:

bug

原因应该是 compile.cmake 中版本判断错误,导致 global_config.hDEBUGRELEASE 定义的值与传入的宏不一致。

Neutree commented 12 months ago

啊确实是bug了,感谢!