pkgsrc-Users archive

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

Re: Pointing cmake to libraries



On Thu, Jul 21, 2022 at 8:05 AM Greg Troxel <gdt%lexort.com@localhost> wrote:

> First, there are ways to turn off cmake's unhelpful hiding of build
> commands, and I think we ought to do this in pkgsrc's cmake support.
> The modern culture of not outputting the commands and having eye candy
> instead of an actual build log is unhelpful.

CMAKE_VERBOSE_MAKEFILE will make cmake echo commands. It's possible to
tie this to the debug option:

.if empty(PKG_OPTIONS:Mdebug)
CMAKE_ARGS+=    -DCMAKE_BUILD_TYPE=Release
.else
CMAKE_ARGS+=    -DCMAKE_BUILD_TYPE=Debug
CMAKE_ARGS+=    -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
.endif


Home | Main Index | Thread Index | Old Index