[CMake] Difficult 'make install' problem

2009-09-14 Thread Marcel Loose
Hi all, I am facing a difficult 'make install' problem. I'll try to explain my project setup. The main project consists of parts and subsystems. Parts contain source code; subsystems do not contain source code, but define a certain subset of all available parts. Here is a simplified version of

Re: [CMake] Problems with CMake on 64-bit Vista

2009-09-14 Thread Tanguy Krotoff
Hi all I have the exact same problem: a message complaining about a bad side-by-side configuration. I have this on a fresh VM with XP 64bits and Visual Studio 2008 SP1. I do have the 32bits debug version of msvcr90d.dll and friends inside

Re: [CMake] linking error after upgrading to snow leopard

2009-09-14 Thread Boudewijn Rempt
On Friday 11 September 2009, Michael Jackson wrote: You are not specifying the libraries that contain those symbols. Looking at your link line you are missing at least the Qt libraries/ Frameworks and maybe some others. Weird, though, since the same CMakeLists.txt worked fine with Leopard,

Re: [CMake] linking error with gsl

2009-09-14 Thread Philip Lowman
Have you tried using make VERBOSE=1 to get the full command line being executed? It looks like `/usr/local/bin/gsl-config might be being passed to the linker via target_link_libraries()? CMake doesn't evaluate backticks, you'll have to use a command like execute_process(). There might be a

Re: [CMake] linking error after upgrading to snow leopard

2009-09-14 Thread Boudewijn Rempt
On Mon, 14 Sep 2009, Boudewijn Rempt wrote: my target_link_libraries looks like this: target_link_libraries(HyvesDesktop HyvesDesktopLib ${QT_LIBRARIES}) HyvesDesktopLib provides the CrashHandler object, and I've checked whether ${QT_LIBRARIES} was set correctly, and it points to the

Re: [CMake] linking error after upgrading to snow leopard

2009-09-14 Thread Boudewijn Rempt
Hm, I downgraded from the CVS version to 2.6.4 and the problem doesn't seem to occur, so I suspect a bug in CMake, after all. Boudewijn ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Problems with CMake on 64-bit Vista

2009-09-14 Thread Bill Hoffman
Tanguy Krotoff wrote: Hi all I have the exact same problem: a message complaining about a bad side-by-side configuration. I have this on a fresh VM with XP 64bits and Visual Studio 2008 SP1. I do have the 32bits debug version of msvcr90d.dll and friends inside

Re: [CMake] Problems with CMake on 64-bit Vista

2009-09-14 Thread Tanguy Krotoff
I see that my statement from my first message is wrong: when I got the side-by-side error message, I was using Visual Studio 2008 WITHOUT SP1 Visual Studio 2008 SP1 solves the problem by installing the right CRT debug files. For sure other people using VS2008 and try_run() in 64bits will get this

Re: [CMake] Problems with CMake on 64-bit Vista

2009-09-14 Thread Bill Hoffman
Tanguy Krotoff wrote: I see that my statement from my first message is wrong: when I got the side-by-side error message, I was using Visual Studio 2008 WITHOUT SP1 Visual Studio 2008 SP1 solves the problem by installing the right CRT debug files. For sure other people using VS2008 and try_run()

Re: [CMake] add_subdirectory and build directory

2009-09-14 Thread Pierre-Julien Villoud
Sorry I did not reply to you... I actually use the target_link_libraries and the add_dependencies which is useless if using the target_link_libraries (I think ?) So I really wonder why my objects are re-built... It's still a mystery for me ! Thanks again Pierre-Julien VILLOUD -Message

Re: [CMake] Eclipse CDT4 generator - No source files

2009-09-14 Thread Dixon, Shane
Eric, I read through the link you sent me and tried again and now I can see the source files, but they show up as a subdirectory in eclipse. For example, I have a folder called ProjectName/src. In eclipse, I see src, but it has only CMakeLists.txt but there's a folder called ProjectName/src

[CMake] Other non-source files in VC9

2009-09-14 Thread Dixon, Shane
I'm using the MSVC9 generator in Windows XP (CMake 2.6.4). I have several files like Readme.txt, News.txt, and Install.txt that I'd like to show up when I generate a MSVC9 project. How do I get those files to show up in MSVC9? -- Shane ___

Re: [CMake] Other non-source files in VC9

2009-09-14 Thread Tyler Roscoe
On Mon, Sep 14, 2009 at 01:59:48PM -0600, Dixon, Shane wrote: I'm using the MSVC9 generator in Windows XP (CMake 2.6.4). I have several files like Readme.txt, News.txt, and Install.txt that I'd like to show up when I generate a MSVC9 project. How do I get those files to show up in MSVC9?

[CMake] Release and Debug build for same source folder?

2009-09-14 Thread motes motes
I would like to create a Release and Debug Build for my source files. Currently I have been able to make both build types separately but it would be nice to not have duplicated source files. My source files depends on ITK and Elastix. I have therefore made both a Debug and Release build for ITK

Re: [CMake] Other non-source files in VC9

2009-09-14 Thread Dixon, Shane
Tyler, Ok, that worked, but my project has multiple binaries so I'd prefer the documentation to show up at the top level. Is there any way to make them show up under the ALL_BUILD target in MSVC9? -- Shane -Original Message- From: Tyler Roscoe [mailto:ty...@cryptio.net] Sent:

Re: [CMake] check_include_files() can't find header because it can't compile test app

2009-09-14 Thread Alexander Neundorf
On Sunday 13 September 2009, Casey Jones wrote: Hello, I'm trying to link a Qt4 library into my program as an optional dependency. I can get it to find and link the library with a FindFoo.cmake. But when I use check_include_files( foo.h HAVE_FOO_H ) it says it can't find the header. So

Re: [CMake] linking error with gsl

2009-09-14 Thread Benoist Laurent
You were actually right the problem was the FindGSL.cmake file. Like I said earlier, I took it from the net. The line SET(GSL_LIBRARIES `${GSL_CONFIG} --libs`) did not returned the expected result. I replaced it by EXEC_PROGRAM(${GSL_CONFIG} ARGS --libs OUTPUT_VARIABLE

Re: [CMake] Release and Debug build for same source folder?

2009-09-14 Thread Eric Noulard
2009/9/14 motes motes mort.mo...@gmail.com: I would like to create a Release and Debug Build for my source files. Currently I have been able to make both build types separately but it would be nice to not have duplicated source files. My source files depends on ITK and Elastix. I have

Re: [CMake] Release and Debug build for same source folder?

2009-09-14 Thread motes motes
This is the CmakeList.txt for the Debug build: cmake_minimum_required(VERSION 2.6) PROJECT(MYPROJ) SET(EXTERNALS_DIR D:/code/local/lib) SET(PROJECT_LIB D:/code/MYPROJ/src/lib) # Find ITK. SET(ITK_DIR ${EXTERNALS_DIR}/InsightToolkit-3.12.0/build) # Elastix source SET(ELASTIX_SRC

Re: [CMake] Other non-source files in VC9

2009-09-14 Thread Philip Lowman
On Mon, Sep 14, 2009 at 4:21 PM, Dixon, Shane shane.di...@atmel.com wrote: Tyler, Ok, that worked, but my project has multiple binaries so I'd prefer the documentation to show up at the top level. Is there any way to make them show up under the ALL_BUILD target in MSVC9? My guess is that