Re: [CMake] Asking CMake to setup compiler for c++11

2015-10-21 Thread Chris Stankevitz
On Wed, Oct 21, 2015 at 2:18 PM, Craig Scott wrote: >> CMAKE_MINIMUM_REQUIRED(VERSION 3.1) >> SET(CMAKE_CXX_STANDARD 11) > http://crascit.com/2015/03/28/enabling-cxx11-in-cmake/ Dan, Craig: Thanks that's great news, Chris -- Powered by www.kitware.com Please keep messages on-topic and check

Re: [CMake] Asking CMake to setup compiler for c++11

2015-10-21 Thread Craig Scott
> -- Forwarded message -- > From: Dan Kegel > To: Chris Stankevitz > Cc: cmake > Date: Wed, 21 Oct 2015 12:54:44 -0700 > Subject: Re: [CMake] Asking CMake to setup compiler for c++11 > Something like > > CMAKE_MINIMUM_REQUIRED(VERSION 3.1) > SET(CMAKE_CXX_STANDARD 11) > > I think

[CMake] using source files in build directory

2015-10-21 Thread Srinath Vadlamani
Hello All, Is it possible to have CMake use source files in some particular order that are placed in the out-of-source build directory? This is allows for the convenience of having multiple builds in different build directories due to a few file changes while preserving the files themselves? Th

[CMake] [ANNOUNCE] CMake 3.4.0-rc2 is now ready!

2015-10-21 Thread Robert Maynard
I am proud to announce the second CMake 3.4 release candidate. Sources and binaries are available at: https://cmake.org/download/ Documentation is available at: https://cmake.org/cmake/help/v3.4 Release notes appear below and are also published at https://cmake.org/cmake/help/v3.4/release/

Re: [CMake] Python project using Cmake

2015-10-21 Thread srinivas boppu
Hi Matthew Keeler, Thanks for your quick reply. My project is a pure python project. I wanted to use cmake and ctest for testing my individual python modules. Later on, I might have some "tcl" scripts and may be some c++ sources in the same project. It would be great, if you could share your pure

Re: [CMake] Asking CMake to setup compiler for c++11

2015-10-21 Thread Dan Kegel
Something like CMAKE_MINIMUM_REQUIRED(VERSION 3.1) SET(CMAKE_CXX_STANDARD 11) I think. On Wed, Oct 21, 2015 at 12:43 PM, Chris Stankevitz wrote: > Hi, > > Q: What is the "CMake way" to ask that the compiler be setup for c++11? > > FYI I could not find the answer at > https://cmake.org/cmake/hel

[CMake] Asking CMake to setup compiler for c++11

2015-10-21 Thread Chris Stankevitz
Hi, Q: What is the "CMake way" to ask that the compiler be setup for c++11? FYI I could not find the answer at https://cmake.org/cmake/help/v3.4/search.html?q=c%2B%2B11 Thank you, Chris -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.

[CMake] CMake way to achieve march=native

2015-10-21 Thread Chris Stankevitz
Hi, What is the CMake way to get march=native? By "CMake way" I'm looking for something that is somewhat robust, works, doesnt' confuse CMake itself... perhaps even works if/when anyone is going to cross compile, etc. The cross-compile part isn't a requirement... I'm just trying to get you to un

Re: [CMake] Creating relocatable packages

2015-10-21 Thread Guillaume Dumont
Great! Always happy to help! On Tue, Oct 20, 2015 at 9:58 AM, Zac Bergquist wrote: > Yes, that was exactly what I needed. > > Now my installed targets file has IMPORTED_LINK_INTERFACE_LIBRARIES "PCAP" > instead of an absolute path, and the FindPCAP.cmake module kicks in and > does what I would e

Re: [CMake] Python project using Cmake

2015-10-21 Thread Matthew Keeler
What are you trying to do? Are you trying to build Python C extensions? If so then the FindPythonLibs module will help you in that regard. It will determine if the Python development files are installed and populate variables with the necessary paths to provide to link_directories and include_di

Re: [CMake] ExternalProject_Add and proxy

2015-10-21 Thread Cedric Doucet
Hello Denis! Thank you for your answer. Actually, there is no login and no password. It's an academic proxy. So the initial syntax of http_proxy should to be correct. Cédric - Mail original - > De: "D. Barbier" > À: "Cedric Doucet" > Cc: cmake@cmake.org > Envoyé: Mercredi 21 Octobre

Re: [CMake] ExternalProject_Add and proxy

2015-10-21 Thread D. Barbier
On 2015-10-21 14:58 GMT+02:00 Cedric Doucet wrote: > > Hello, > > I try to download a library with ExternalProject_Add. > The URL is correct and the CMake script works well, except when there is a > proxy to define. > > The URL is : http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz > > After having

[CMake] Python project using Cmake

2015-10-21 Thread srinivas boppu
Hello All, I am new to cmake and its build and ctest system. I read some where that cmake default look for c++ compiler and we need to modify/configure the cmake to recongize the python files. I googled for the same but I couldn't find any concrete and complete example. Any pointers in this regard

Re: [CMake] Known issues with Xcode 6.x and CMake

2015-10-21 Thread Michael Jackson
> On Oct 19, 2015, at 7:01 AM, Gregor Jasny via CMake wrote: > > Hello, > > On 17/10/15 18:28, Michael Jackson wrote: >> Are there any known issues with Xcode 6.4 and CMake 3.3.x? I ask because in >> our project when we generate the Xcode project we end up with 2 or 3 >> executables listed i

[CMake] ExternalProject_Add and proxy

2015-10-21 Thread Cedric Doucet
Hello, I try to download a library with ExternalProject_Add. The URL is correct and the CMake script works well, except when there is a proxy to define. The URL is : http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz After having set http_proxy=http://proxy.name.fr:1234 https_proxy=https

[CMake] cmake.exe build type from cmd

2015-10-21 Thread Lars
Hello, Using CMake 3.3 on Windows 7 platform with VS2012. To build software I run; cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "Visual Studio 11" /path/to/source msbuild /m /p:Configuration=RelWithDebInfo INSTALL.wcxproj To help developers I would like to create a couple of scripts. Does cmak

[CMake] CMake add_definitions string definitions fails on OS X

2015-10-21 Thread Andrew Zhilka
Hi all! I am using CMake and g++ on OS X 10.10. My problem is following: in CMakeLists.txt I add line: add_definitions(-DPROJECT_ROOT="${CMAKE_CURRENT_SOURCE_DIR}/../..") When I try to use PROJECT_ROOT in source code I can not build it. It says error: expected expression std::cout << PROJECT