tech-pkg archive

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

Re: cmake try_compile error



On 2015-03-24, Yorick Hardy wrote:
> Dear Thomas,
> 
> On 2015-03-24, Thomas Klausner wrote:
> > Hi!
> > 
> > I've tried packaging innoextract. It builds fine (on
> > NetBSD-7.99.5/amd64/gcc 4.8.4) when I extract it and run 'cmake'
> > manually, but inside pkgsrc it fails with (see wip/innoextract):
> > 
> > -- Checking compiler flag: -std=c++11
> > CMake Error at cmake/CompileCheck.cmake:72 (try_compile):
> >   Attempt at a recursive or nested TRY_COMPILE in directory
> > 
> >     /scratch/nih/innoextract/work/innoextract-1.4
> > 
> > Call Stack (most recent call first):
> >   cmake/CXX11Check.cmake:41 (check_compile)
> >   CMakeLists.txt:150 (check_cxx11)
> > 
> > 
> > CMake Error at cmake/CompileCheck.cmake:72 (try_compile):
> >   Attempt at a recursive or nested TRY_COMPILE in directory
> > 
> >     /scratch/nih/innoextract/work/innoextract-1.4
> > 
> > Call Stack (most recent call first):
> >   cmake/CXX11Check.cmake:41 (check_compile)
> >   CMakeLists.txt:154 (check_cxx11)
> >   
> > Does anyone have an idea what the problem is and how to fix it?
> 
> Do the attached patches fix the problem?

Apologies, I think that was for a different issue. I think this
is perhaps what you need:

CMAKE_ARGS+=    -DUSE_CXX11=OFF

But I don't yet know why.

-- 
Kind regards,

Yorick Hardy


Home | Main Index | Thread Index | Old Index