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

2013-02-15 Thread Bart Nabbe
Hi, I'm sure I just overlooked something, but I can not get shared libraries (at a non system location) to load properly at runtime after having had them linked properly. If I run otool -L the library is listed without any path or loader reference: dylibLinkTest: libiomp5.dylib (compatib

Re: [CMake] How to create libfoo.so.1 style names for OS X shared libraries

2013-02-15 Thread Blair Zajac
On 02/15/2013 01:02 PM, Blair Zajac wrote: We have an existing deployment of a large amount of internal software on Linux using custom build and link tools that expect a certain naming layout. We're porting it over to OS X and to be consistent we want to name shared libraries with the Linux styl

[CMake] How to create libfoo.so.1 style names for OS X shared libraries

2013-02-15 Thread Blair Zajac
We have an existing deployment of a large amount of internal software on Linux using custom build and link tools that expect a certain naming layout. We're porting it over to OS X and to be consistent we want to name shared libraries with the Linux style, that is, libOpenImageIO.so.32. OpenIm

Re: [CMake] Install CMake Nightly fails on Mac with old CMake installed

2013-02-15 Thread Jean-Christophe Fillion-Robin
Hi Daniel, Simply get the latest tar.gz For example: curl -O http://www.cmake.org/files/dev/cmake-2.8.10.20130105-ga4e06-Darwin64-universal.tar.gz tar -xzvf cmake-2.8.10.20130105-ga4e06-Darwin64-universal.tar.gz Hth Jc On Fri, Feb 15, 2013 at 1:50 PM, Daniel Haehn < daniel.ha...@childrens

Re: [CMake] Install CMake Nightly fails on Mac with old CMake installed

2013-02-15 Thread Daniel Haehn
Hi JC, well - right now I don't have CMake at all due to the installation issue :/ Cheers, Daniel On Fri, Feb 15, 2013 at 1:36 PM, Jean-Christophe Fillion-Robin < jchris.filli...@kitware.com> wrote: > Hi Daniel, > > The issue has been re-opened. Can you reproduce the problem using the > toy

Re: [CMake] Install CMake Nightly fails on Mac with old CMake installed

2013-02-15 Thread Jean-Christophe Fillion-Robin
Hi Daniel, The issue has been re-opened. Can you reproduce the problem using the toy project referenced here: http://www.cmake.org/Bug/view.php?id=13765#c32292 Thanks Jc On Fri, Feb 15, 2013 at 10:56 AM, Jean-Christophe Fillion-Robin < jchris.filli...@kitware.com> wrote: > Hi Folks, > > For re

Re: [CMake] comparing strings

2013-02-15 Thread Alexander Neundorf
On Thursday 14 February 2013, Shaun Williams wrote: > I'm slowly realizing the gravity of this behavior: > > if(build_system STREQUAL "windows") > ... > endif() > > If someone creates a variable named "windows", then this code will not work > as intended. > > I'm starting to convert our scripts

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

2013-02-15 Thread Yngve Inntjore Levinsen
It is true, I actually never had problems just adding -m32 on my machines, but I assumed some systems are more difficult than others.. But what do I know? :) Cheers, Yngve On 15/02/13 16:33, clin...@elemtech.com wrote: > Or simply specify -m32 at the first configure > CFLAGS=-m32 CXXFLAGS=-m32 cm

[CMake] Why dont FindTIFF.cmake and FindJPEG.cmake consider _DIR variables?

2013-02-15 Thread Kent Williams
Are FindTIFF.cmake and FindJPEG.cmake really old and neglected? Neither seems to bother looking at TIFF_DIR or JPEG_DIR -- you have to set TIFF_LIBRARY and TIFF_INCLUDE_DIR (or JPEG_LIBRARY and JPEG_INCLUDE_DIR). find_package is a great facility but I find myself having to look at the actual Fin

Re: [CMake] Install CMake Nightly fails on Mac with old CMake installed

2013-02-15 Thread Jean-Christophe Fillion-Robin
Hi Folks, For reference: A similar issue regarding XCode 4.5.X as been submitted and resolved - See http://cmake.org/Bug/view.php?id=13765 May be something change with XCode 4.6 Jc On Fri, Feb 15, 2013 at 10:39 AM, Daniel Haehn < daniel.ha...@childrens.harvard.edu> wrote: > Hi guys, > > I am

[CMake] Install CMake Nightly fails on Mac with old CMake installed

2013-02-15 Thread Daniel Haehn
Hi guys, I am trying to install the CMake Nightly * http://www.cmake.org/files/dev/cmake-2.8.10.20130213-g7665b-Darwin-universal.dmg * * * But it fails saying that a newer version of CMake exists (CMake 2.8.10 stable). I deleted the application bundle and the cmake links in /usr/bin/ but it still

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

2013-02-15 Thread Keith Gardner
What I have done in the past is the -m32 flag to the CMAKE_CXX_FLAGS and all of the search paths were updated automatically. You just need to add the flag when you CMake for the first time. I did this on CentOS 5.8 x64 without any problems. Keith -Original Message- From: cmake-boun..

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

2013-02-15 Thread clinton
Or simply specify -m32 at the first configure CFLAGS=-m32 CXXFLAGS=-m32 cmake ../src find_library() works correctly if you do that, and it automatically detects if the 32 bit libraries are in /usr/lib32 or /usr/lib. Clint - Original Message - > Hello, > > On 15/02/13 15:41, Martin Kol

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

2013-02-15 Thread Yngve Inntjore Levinsen
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.) This is why I prefer toolchain files over adding an option inside the CMakeLists.txt files. On some systems you probably also want to change

Re: [CMake] CPack: Packaging debug and release configurations in a single zip

2013-02-15 Thread clinton
Does that result in building the code 3 times? And why would you need to repeat the install directives? I've attached a CMakeLists.txt file for an example project that works for me without repeating install directives. Clint - Original Message - > Here's a follow-up. > I was unabl

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

2013-02-15 Thread Martin Koller
On Friday 15 February 2013 12:11:27 m. hergarden wrote: > Can you share a bit more context? I suspect there may be no single > correct answer, as it depends on your situation what the best way is. I have a 64bit Linux server (RHEL5), which automatically builds our software every night (triggered

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

2013-02-15 Thread m.hergarden
Can you share a bit more context? I suspect there may be no single correct answer, as it depends on your situation what the best way is. If you are using a toolchain file you will have to put the decision of using that file outside of your cmake file. You can also opt to put a check inside your cma

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

2013-02-15 Thread Ansis Māliņš
The *easiest* way is to use a virtual machine. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscrib

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

2013-02-15 Thread Martin Koller
Hi all, for the question above I found different answers on the web, so I'm puzzled and wanted to know an authoritative answer from the cmake gurus. What I found: http://www.vtk.org/Wiki/CMake_Cross_Compiling#Information_how_to_set_up_various_cross_compiling_toolchains => "On mixed 32/64 bit Linu