Hi,

It seems the other project is on the right way.
I do not know if Autotools can be used as easily like this?

# cmake -S . -B debug_dir -DCMAKE_BUILD_TYPE=Debug
# cmake -S . -B release_dir -DCMAKE_BUILD_TYPE= Release

It sets -g in Debug, -O3 in Release for build command.
It sets -DNDEBUG in Release, so NDEBUG is available in .c source code.
It sets CMAKE_BUILD_TYPE which can be used in CMakeLists.txt script.

Reply via email to