Re: macos-xcode-cmake build fails with --std=c++17 SOLVED

2020-11-14 Thread pdv

On 13/11/2020 17:14, Kornel Benko wrote:

Am Fri, 13 Nov 2020 17:04:18 +0100
schrieb Kornel Benko :


Am Fri, 13 Nov 2020 15:27:36 +0100
schrieb pdv :


I suppose HAVE_DEF_MAKE_UNIQUE should have been set to one but it wasn't.
Removing HAVE_DEF_MAKE_UNIQUE from cmake's cache didn't help.
The check_cxx_source_compiles() in ConfigureChecks.cmake was never
executed and HAVE_DEF_MAKE_UNIQUE was never set.

In the end I started from scratch and then the check ran and
HAVE_DEF_MAKE_UNIQUE=1.

P. De Visschere


You should remove CMakeCache.txt, so that cmake is forced to recheck everything.

It can also be that while checking, some other header files are used than at 
compile
time. Possible are also different compiler settings.

Kornel


I had a similar problem with some left-over header files in the _build_ 
directory.
So starting from scratch has to mean 'with empty build dir'.

Kornel




Yes, that's what I did: out-of-source build in an empty dir.

But I found out that this was not really needed: when emptying 
cmakecache.txt as much as possible (removing all 'internal cache 
entries' and 'external cache entries' generated by cmake) the problem is 
also solved.

In this way I could have saved my manual settings.

P. De Visschere
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: macos-xcode-cmake build fails with --std=c++17 SOLVED

2020-11-13 Thread Kornel Benko
Am Fri, 13 Nov 2020 17:04:18 +0100
schrieb Kornel Benko :

> Am Fri, 13 Nov 2020 15:27:36 +0100
> schrieb pdv :
> 
> > I suppose HAVE_DEF_MAKE_UNIQUE should have been set to one but it wasn't.
> > Removing HAVE_DEF_MAKE_UNIQUE from cmake's cache didn't help.
> > The check_cxx_source_compiles() in ConfigureChecks.cmake was never 
> > executed and HAVE_DEF_MAKE_UNIQUE was never set.
> > 
> > In the end I started from scratch and then the check ran and 
> > HAVE_DEF_MAKE_UNIQUE=1.
> > 
> > P. De Visschere  
> 
> You should remove CMakeCache.txt, so that cmake is forced to recheck 
> everything.
> 
> It can also be that while checking, some other header files are used than at 
> compile
> time. Possible are also different compiler settings.
> 
>   Kornel

I had a similar problem with some left-over header files in the _build_ 
directory.
So starting from scratch has to mean 'with empty build dir'.

Kornel


pgp5a8cwEJH4W.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: macos-xcode-cmake build fails with --std=c++17 SOLVED

2020-11-13 Thread Kornel Benko
Am Fri, 13 Nov 2020 15:27:36 +0100
schrieb pdv :

> I suppose HAVE_DEF_MAKE_UNIQUE should have been set to one but it wasn't.
> Removing HAVE_DEF_MAKE_UNIQUE from cmake's cache didn't help.
> The check_cxx_source_compiles() in ConfigureChecks.cmake was never 
> executed and HAVE_DEF_MAKE_UNIQUE was never set.
> 
> In the end I started from scratch and then the check ran and 
> HAVE_DEF_MAKE_UNIQUE=1.
> 
> P. De Visschere

You should remove CMakeCache.txt, so that cmake is forced to recheck everything.

It can also be that while checking, some other header files are used than at 
compile time.
Possible are also different compiler settings.

Kornel


pgpfuG0cExtmb.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: macos-xcode-cmake build fails with --std=c++17 SOLVED

2020-11-13 Thread pdv

I suppose HAVE_DEF_MAKE_UNIQUE should have been set to one but it wasn't.
Removing HAVE_DEF_MAKE_UNIQUE from cmake's cache didn't help.
The check_cxx_source_compiles() in ConfigureChecks.cmake was never 
executed and HAVE_DEF_MAKE_UNIQUE was never set.


In the end I started from scratch and then the check ran and 
HAVE_DEF_MAKE_UNIQUE=1.


P. De Visschere
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel