[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.
- Re: if vs. ifdef in Makefile.am, (continued)
Re: if vs. ifdef in Makefile.am, ljh, 2023/03/03
Re: if vs. ifdef in Makefile.am, Arsen Arsenović, 2023/03/01
Re: if vs. ifdef in Makefile.am, Bogdan, 2023/03/02
- Re: if vs. ifdef in Makefile.am, ljh, 2023/03/02
- Re: if vs. ifdef in Makefile.am, Jacob Bachmeyer, 2023/03/02
- Re: if vs. ifdef in Makefile.am,
ljh <=
- Re: if vs. ifdef in Makefile.am, Jan Engelhardt, 2023/03/03
- Re: if vs. ifdef in Makefile.am, ljh, 2023/03/03
- Re: if vs. ifdef in Makefile.am, Jan Engelhardt, 2023/03/03
- Re: if vs. ifdef in Makefile.am, ljh, 2023/03/03
- Re: if vs. ifdef in Makefile.am, Jan Engelhardt, 2023/03/03