automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: if vs. ifdef in Makefile.am


From: ljh
Subject: Re: if vs. ifdef in Makefile.am
Date: Fri, 3 Mar 2023 16:36:12 +0800

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

[Prev in Thread] Current Thread [Next in Thread]