Re: [CMake] Link to local glibc

2017-03-07 Thread Michele Portolan
I'll try and see if I can compile a gcc 4.9.3 chain on the CentOS 5 machine (I need C++11). The docker container looks interesting but I haven't used it yet: does it need some specific install on the target machine? I don't have any install rights on the Cento 5.11 machine Thanks, Mich

Re: [CMake] Link to local glibc

2017-03-07 Thread Chuck Atkins
If you're using a newer Ubuntu environment, I'd suggest using a CentOS 5 docker container. Either that or the VM. - Chuck On Tue, Mar 7, 2017 at 1:53 PM, Marcel Loose wrote: > Hi Michele, > > This could become a painful exercise. You basically have two options: > 1) Treat it as a cross-compil

Re: [CMake] Link to local glibc

2017-03-07 Thread Marcel Loose
Hi Michele, This could become a painful exercise. You basically have two options: 1) Treat it as a cross-compilation project, or 2) Create a virtual machine running CentOS 5.8 and do the build there. If I were you, I would go for the second option. Cheers, Marcel. Op 07-03-17 om 17:56 schreef Mi

[CMake] Link to local glibc

2017-03-07 Thread Michele Portolan
Hello, I build on a Ubuntu machine (kernel 4.4.0-64-generic), but I need my program to be executed on an old Cento 5.8 (kernel 2.6.18). I tried compiling with "-static" to have static linking, but when I try to execute I get "ERROR: Kernel too old!" I therefore locally compiled a glibc with

Re: [CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Winfried
Robert Maynard schreef op 07.03.2017 16:34: The issue is that GCC 4.8 c++1y does offer support for some c++14 features ( https://gcc.gnu.org/projects/cxx-status.html#cxx14 ) and therefore that is why you getting a compile time failure. You could try using target_compile_features instead but it on

[CMake] Problem with VS2017 and CMakeGNUtoMS_lib.bat.in (cmake-3.8-rc2)

2017-03-07 Thread Thompson, KT
Hi, I use the CMakeAddFortranSubdirectory feature in one of my projects. This appears to be broken under Visual Studio 2017 Community Edition RC because CMake\share\cmake-3.8\Modules\Platform\GNUtoMS_lib.bat.in generates a batch file that contains: call "C:\Program Files (x86)\Microsoft Visua

Re: [CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Robert Maynard
The issue is that GCC 4.8 c++1y does offer support for some c++14 features ( https://gcc.gnu.org/projects/cxx-status.html#cxx14 ) and therefore that is why you getting a compile time failure. You could try using target_compile_features instead but it only verifies language level features and is not

[CMake] CMAKE_CXX_STANDARD_REQUIRED not working in helloworld

2017-03-07 Thread Winfried
I am trying to let cmake exit with an error when the c++ compiler doesn't support at least the C++14 standard. According to the cmake documentation this should be possible with variables CMAKE_CXX_STANDARD and CMAKE_CXX_STANDARD_REQUIRED. However when I compile the simple helloworld example bel

[CMake] CPack WIX - disable feature by default

2017-03-07 Thread tonka tonka
Hello, I’ve create an installer with cpack and WIX (cpack –G WIX). Everything works fine, but I have one big problem. I have 2 features, which are created by cpack(wix). My Problem: I want to deactivate the CM_C_dev feature by default (CPACK_WIX seems t

[CMake] libsndfile in windows

2017-03-07 Thread aishwarya selvaraj
​Hi all , I'm trying to compile a .cpp code of mine using cmake file in all the three platforms. I have successfully completed it in Linux software . when I started to do it in windows I read across multiple documents which mention that ​libsnd file cannot be built on windows using visual studio ,