[CMake] Having find_library et al. search within OS X SDK root directory

2013-03-14 Thread Matthew LeRoy
Hi, Forgive me if this issue has been discussed or is documented elsewhere, but after some thorough perusal of the archives I didn't find anything. When using the Xcode generator, is there a way to get find_library() and related commands to search within the SDK directory specified by CMAKE_OSX_S

[CMake] Does INSTALL_RPATH work on OS X?

2013-01-25 Thread Matthew LeRoy
Hi, I'm trying to convince CMake to do my bidding with regard to setting the RPATH on one of my executables, and it doesn't seem to be working as I think it should be (according to my understanding of the documentation). I'm running CMake 2.8.10.2 on OS X 10.8.2, and using the Xcode generator. Wh

Re: [CMake] cache behavior of CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET variables

2012-12-20 Thread Matthew LeRoy
d line. They shouldn't be hard-coded in your CMakeLists file. HTH, David On Thu, Dec 20, 2012 at 2:25 PM, Matthew LeRoy wrote: Hi, Lately I've been attempting to use the CMAKE_OSX_DEPLOYMENT_TARGET and CMAKE_OSX_SYSROOT variables to set the corresponding properties on the gen

[CMake] cache behavior of CMAKE_OSX_SYSROOT and CMAKE_OSX_DEPLOYMENT_TARGET variables

2012-12-20 Thread Matthew LeRoy
Hi, Lately I've been attempting to use the CMAKE_OSX_DEPLOYMENT_TARGET and CMAKE_OSX_SYSROOT variables to set the corresponding properties on the generated Xcode project, and I'm trying to understand how these variables behave with respect to the CMake cache. I'm using CMake 2.8.10.2. I'm doin

[CMake] Finding include directories when importing targets exported via install(EXPORT ...)

2012-05-15 Thread Matthew LeRoy
Hi again, I'm working on setting up install(...) commands for a shared library project (call it libA), and I'm using the install(EXPORT ...) signature as has been recommended to me previously to export the shared library target so I can import it in another CMake-based project (call it libB). S

Re: [CMake] Best practices/preferred methods for linking external libraries

2011-12-06 Thread Matthew LeRoy
On 2011-12-03 14:54-0800 Alan W. Irwin wrote: > > On 2011-12-03 12:42-0800 Alan W. Irwin wrote: > > > On 2011-12-02 19:33-0000 Matthew LeRoy wrote: > >> Assuming we want to just put the install tree in version control > >> somewhere, and have ProjectB's

Re: [CMake] Best practices/preferred methods for linking external libraries

2011-12-06 Thread Matthew LeRoy
On Dec 5, 2011, at 5:57 PM, Michael Jackson wrote: > On Dec 5, 2011, at 5:36 PM, Matthew LeRoy wrote: > > > On Dec 4, 2011, at 11:59 AM, Michael Jackson wrote: > > > >> On Dec 1, 2011, at 4:56 PM, Matthew LeRoy wrote: > >> > >>> We began using CM

Re: [CMake] Best practices/preferred methods for linking external libraries

2011-12-05 Thread Matthew LeRoy
On Dec 4, 2011, at 11:59 AM, Michael Jackson wrote: > On Dec 1, 2011, at 4:56 PM, Matthew LeRoy wrote: > >> We began using CMake a few months ago for a couple of small cross-platform >> projects, and we're still >> learning all the ins and outs and capabilitie

Re: [CMake] Best practices/preferred methods for linking external libraries

2011-12-02 Thread Matthew LeRoy
ng a Find module the best way to do that? Matt -Original Message- From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] Sent: Thursday, December 01, 2011 6:13 PM To: Matthew LeRoy Cc: 'cmake@cmake.org' Subject: [POSSIBLE SPAM] Re: [CMake] Best practices/preferred methods for l

[CMake] Best practices/preferred methods for linking external libraries

2011-12-01 Thread Matthew LeRoy
We began using CMake a few months ago for a couple of small cross-platform projects, and we're still learning all the ins and outs and capabilities CMake has to offer, as well as how to get the most out of CMake by using it "The Right Way". Right now, we're trying to figure out how to link to ex

[CMake] FindPythonLibs fails inexplicably

2011-11-29 Thread Matthew LeRoy
I'm having trouble diagnosing why a call to FIND_PACKAGE(PythonLibs) is failing. I am running CMake 2.8.5 on Windows 7 Enterprise, 64-bit. The same CMake code works fine on my colleagues' systems, so it's got to be something wrong on my machine. In my CMakeLists.txt, I've got something like this:

[CMake] add_custom_command, source_group, and non-existant files with the VS 2010 generator

2011-11-08 Thread Matthew LeRoy
I've got a question related to the way CMake handles files that are non-existant at CMake-time, but which are listed as OUTPUTs of an add_custom_command, and are included in a source_group. I'm using CMake 2.8.5 and the Visual Studio 2010 generator. I have a Python script which reads a .resx file