On Sun Apr 03, 2022 at 06:37:45PM +0200, Jeremie Courreges-Anglas wrote: > On Sat, Apr 02 2022, Theo Buehler <[email protected]> wrote: > > Disable thin archives if we use GNU ar since ours is too old to support > > it. > > ok jca@ > > > If there is a way to do that via CONFIGURE_FLAGS += -Dsomething > > conditionally on .if !${PROPERTIES:Mclang} > > Rather ${PROPERTIES:Mlld}, which should match LLD_ARCH in bsd.own.mk. > > > that would probably be > > preferable. Nothing I tried worked. Pointers welcome. > > I can't see how it could be overriden, I'm no cmake expert but those are > not options (with default values), just variables set unconditionally. >
... and it's also not an cached "set". "It is possible for the cache entry to exist prior to the call but have no type set if it was created on the cmake(1) command line by a user through the -D<var>=<value> option without specifying a type. In this case the set command will add the type. Furthermore, if the <type> is PATH or FILEPATH and the <value> provided on the command line is a relative path, then the set command will treat the path as relative to the current working directory and convert it to an absolute path." https://cmake.org/cmake/help/latest/command/set.html#set-cache-entry To overwide by cmake(1) -D you need option[1] or a cached set. 1: https://cmake.org/cmake/help/latest/command/option.html?highlight=option Maybe this is helpful for one or the other. Rafael
