Re: [CMake] Support for -D prefixed compiler flags

2013-02-19 Thread Andreas Pakulat
Hi, On Wed, Feb 20, 2013 at 6:39 AM, Patrick McMunn wrote: > I'm not 100% sure this is a cmake bug or if this is even the place to report > it, but I ran into a bug as described here: > http://www.gccxml.org/Bug/view.php?id=11069 It seems that cmake gives an > error when checking the compiler fla

[CMake] Support for -D prefixed compiler flags

2013-02-19 Thread Patrick McMunn
I'm not 100% sure this is a cmake bug or if this is even the place to report it, but I ran into a bug as described here: http://www.gccxml.org/Bug/view.php?id=11069 It seems that cmake gives an error when checking the compiler flags needed for a library. The library has, depending on the particular

[CMake] FW: Remove _MBCS

2013-02-19 Thread YanmingZou
Hi, Who can give me a hand? thanks. Yanming From: ym...@hotmail.com To: cmake@cmake.org Date: Mon, 18 Feb 2013 09:00:07 + Subject: [CMake] Remove _MBCS Hi, I am developing an application on windows with VS2012 and CMake (2.8.10.2). I want to use unicode in my program, so I add UNICODE a

Re: [CMake] detecting if c++11 available

2013-02-19 Thread Thompson, K T
Hi Brad, I am using a modified version of the code examples offered at http://pageant.ghulbus.eu/ "C++11 Detection with CMake" from February 15, 2012. -kt > -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of > Brad Bell > Sent: Tuesday, F

Re: [CMake] Setting XCode Runtime Search Path

2013-02-19 Thread Nick Overdijk
"Dakon", Don't know his real name, sorry, wrote something for this, you can get it here: git://anongit.kde.org/scratch/dakon/cmake-cxx11 On 2013-20-02, at 01:17:28 , Alexey Petruchik wrote: > Hi, I'm doing this by adding: > set(CMAKE_XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS > "@executable_path/

Re: [CMake] Setting XCode Runtime Search Path

2013-02-19 Thread Alexey Petruchik
Hi, I'm doing this by adding: set(CMAKE_XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@executable_path/../Frameworks") to my CMakeLists.txt. Not sure that this is the way it should be done but at least it works ;) Regards, Alexey On Wed, Feb 20, 2013 at 1:13 AM, Darrell Blake wrote: > Is there any w

Re: [CMake] detecting if c++11 available

2013-02-19 Thread Matthew Woehlke
On 2013-02-19 18:36, Brad Bell wrote: My goal is to use some new c++11 features if they are available, otherwise to stick to the c++03 features. I need to build test programs that check for correctness as well as distribute an include file library. In general, you should test for specific featu

[CMake] detecting if c++11 available

2013-02-19 Thread Brad Bell
My goal is to use some new c++11 features if they are available, otherwise to stick to the c++03 features. I need to build test programs that check for correctness as well as distribute an include file library. Is there a way in cmake to detect if c++11 is available and to use it when it is av

[CMake] Setting XCode Runtime Search Path

2013-02-19 Thread Darrell Blake
Is there any way to set the XCode "Runtime Search Path" linker setting? I've got a framework that was built using @rpath so I'm having to set the Runtime Search Path setting to @executable_path/../Frameworks so it can be found. I just wondered if there was any way to set it from CMake. Darrell --

Re: [CMake] post-generate hook

2013-02-19 Thread Alexander Neundorf
On Tuesday 19 February 2013, Martin Perzl wrote: > Is it possible to execute a command just after the cmake generation > phase? I do not mean a pre- or post-build hook, but a hook just after > cmake itself has finished executing. > > I found an old post on this list answering exactly the same ques

Re: [CMake] Adding dylib with either @rpath or absolute paths to osx cmd line executable target

2013-02-19 Thread Clinton Stimpson
If you compile libiomp5 yourself with CMake, you can set the INSTALL_NAME_DIR target property and have CMake put that @rpath in for you instead of a post build rule running install_name_tool. Clint On Tuesday, February 19, 2013 09:03:57 AM Bart Nabbe wrote: > That is precisely what I ended up

Re: [CMake] When should I use add_subdirectory and when ExternalProject?

2013-02-19 Thread Todd Greer
From one brief use of ExternalProject, I came to the conclusion that it should be used when it makes sense to let CMake handle downloading the project in question, and to otherwise use add_subdirectory. Others with more ExternalProject experience may have greater insight, though. -- Todd Greer

Re: [CMake] Adding dylib with either @rpath or absolute paths to osx cmd line executable target

2013-02-19 Thread Bart Nabbe
That is precisely what I ended up doing. A per target post build rule that runs install_name_tool. With all cmake's wizardry, I sorta figured somebody must have thought about this already ;) Thanks for the tip, I feel better now that I did not overlook something! On Feb 19, 2013, at 8:58, Cli

Re: [CMake] Adding dylib with either @rpath or absolute paths to osx cmd line executable target

2013-02-19 Thread Clinton Stimpson
Have you looked at using "install_name_tool -id" to change the id of the shared library. If you do install_name_tool -id @rpath/libiomp5.dylib /path/to/libiomp5.dylib Then when you link dylibLinkTest and then check it with otool -L, it will already have "@rpath/libiomp5.dylib" instead of just a

Re: [CMake] post-generate hook

2013-02-19 Thread Petr Kmoch
Hi Martin. I asked for this feature some time ago, but it was rejected :-( http://public.kitware.com/Bug/view.php?id=13020 Petr On Tue, Feb 19, 2013 at 4:37 PM, Martin Perzl wrote: > Is it possible to execute a command just after the cmake generation phase? I > do not mean a pre- or post-build

Re: [CMake] how to compile as 32bit on a 64bit Linux host ?

2013-02-19 Thread Martin Koller
On Friday 15 February 2013 16:26:39 Yngve Inntjore Levinsen wrote: > Hello, > > On 15/02/13 15:41, Martin Koller wrote: > > I'm just not sure if it is enough to change the compiler flags or if > > there is more to change (paths etc.) I now found out that - for me - it's not enough to simply add t

[CMake] post-generate hook

2013-02-19 Thread Martin Perzl
Is it possible to execute a command just after the cmake generation phase? I do not mean a pre- or post-build hook, but a hook just after cmake itself has finished executing. I found an old post on this list answering exactly the same question, but I am not sure how the problem was solved (eit