Re: [CMake] MSVC7.1 static link question

2009-02-09 Thread Philip Lowman
On Mon, Feb 9, 2009 at 12:39 PM, Luigi Calori wrote: > I' m quite a newbie in static linking, I would like to combine two lib > into one: > say libtiff needs libjpeg and zlib > If you generate them separately, then when you build an executable that > needs libtiff, you have to link also libjpeg a

Re: [CMake] find_package on windows also considering unix paths?

2009-02-09 Thread Andreas Pakulat
On 09.02.09 22:03:18, Alexander Neundorf wrote: > On Saturday 07 February 2009, Andreas Pakulat wrote: > > Hi, > > > > it seems that find_package in config-mode also searches unix-like paths in > > CMAKE_PREFIX_PATH. So if I put myprojectConfig.cmake into > > /lib/cmake/ its still found, even if in

Re: [CMake] CMake and XCode 3 debugger

2009-02-09 Thread E. Wing
This conservation has moved to the bug tracker: http://www.cmake.org/Bug/view.php?id=8481 On Fri, Feb 6, 2009 at 7:26 PM, E. Wing wrote: > I just got back to using CMake again for a project. I am using 2.6.2 and > Xcode 3.1.2 (everything current as of today). Using the Xcode generator, > the g

Re: [CMake] Cmake, Eclipse and MinGW (bug in the include)

2009-02-09 Thread Alexander Neundorf
On Monday 09 February 2009, Benoit wrote: > I've a problem using cmake, eclipse and minGW. > The thing is that my project compile correctly but Eclipse can't find the > standard includes (stdlib,stdio,...). > > To correct this error I need to add in the main CMakeList.txt: > > IF(MINGW) > IF(EX

Re: [CMake] find_package on windows also considering unix paths?

2009-02-09 Thread Alexander Neundorf
On Saturday 07 February 2009, Andreas Pakulat wrote: > Hi, > > it seems that find_package in config-mode also searches unix-like paths in > CMAKE_PREFIX_PATH. So if I put myprojectConfig.cmake into > /lib/cmake/ its still found, even if installing on windows. > > Is this intentional? If so, it shou

Re: [CMake] JWASM support

2009-02-09 Thread Alexander Neundorf
On Friday 06 February 2009, Dmitry Bely wrote: > On Tue, Feb 3, 2009 at 11:22 PM, Alexander Neundorf > > wrote: > > On Tuesday 03 February 2009, Hendrik Sattler wrote: > >> Dmitry Bely schrieb: > >> >> If you use a toolchain file because you are cross-compiling, then you > >> >> do not have this p

[CMake] "unit" testing your CMakeLists.txt

2009-02-09 Thread Tyler Roscoe
My company is adopting Test-Driven Development. I am wondering if any of you build engineers in a similar position have given any thought to how one might use this approach when developing your build systems. In one sense, you can say, "Well, the build is the test. If I say 'go' and I end up with

Re: [CMake] Cmake, Eclipse and MinGW (bug in the include)

2009-02-09 Thread Michael Jackson
Does your project compile in eclipse BUT eclipse can not find the std includes in order for the code completion to work? This is an eclipse configuration issue and not a CMake issue. _ Mike Jackson mike.jack...@bluequart

[CMake] Cmake, Eclipse and MinGW (bug in the include)

2009-02-09 Thread Benoit
I've a problem using cmake, eclipse and minGW. The thing is that my project compile correctly but Eclipse can't find the standard includes (stdlib,stdio,...). To correct this error I need to add in the main CMakeList.txt: IF(MINGW) IF(EXISTS "C:/MinGW/include") include_directories(C:

[CMake] MSVC7.1 static link question

2009-02-09 Thread Luigi Calori
I' m quite a newbie in static linking, I would like to combine two lib into one: say libtiff needs libjpeg and zlib If you generate them separately, then when you build an executable that needs libtiff, you have to link also libjpeg and zlib otherwise unref happens It is possible, under VisualStud

Re: [CMake] copy generated dll in executable directory

2009-02-09 Thread Michael Jackson
You probably want something like the following in your CMake file # -- Setup output Directories - SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin CACHE PATH "Single Directory for all Libraries" ) # - Setup the Executable output Dire

Re: [CMake] Read Windows Registry value

2009-02-09 Thread Eric Noulard
2009/2/9 elizabeta petreska : > Still not working. > I am getting the following : > MATLAB_ROOT_PATH = > [HKEY_LOCAL_MACHINE\SOFTWARE\MathWorks\MATLAB\7.6;MATLABROOT] My first suggestion was silly. Message may print this but registry read may be OK. You'll find attached an example of registry usa

[CMake] copy generated dll in executable directory

2009-02-09 Thread Benoit
Hy! I'm doing a project where I'm generating 2 libraries for differents application. The problem is that the dll and the executable are not in the same directory. Therefore if i need to copy the dll each time i want to recompile them. The tree of my project is the following. ./CMakeList.txt (A)

Re: [CMake] Read Windows Registry value

2009-02-09 Thread elizabeta petreska
Still not working.I am getting the following : MATLAB_ROOT_PATH = [HKEY_LOCAL_MACHINE\SOFTWARE\MathWorks\MATLAB\7.6;MATLABROOT] On Mon, Feb 9, 2009 at 4:28 PM, Eric Noulard wrote: > 2009/2/9 elizabeta petreska : > > Hello > > I am trying to read MatlabRoot from Registry ,so I can use it in my >

[CMake] FindPkgConfig module on Windows

2009-02-09 Thread ehrhart . dev
Hello, I understand that the Findxxx() module (like FindBoost) is better than use of pkg-config file (particularly with cross compiling context), but pkg-config can be convenient. I've installed the pkg-config port on windows (from gnome.org) and it seems to work at a first glance. but I've got a p

Re: [CMake] Read Windows Registry value

2009-02-09 Thread Eric Noulard
2009/2/9 elizabeta petreska : > Hello > I am trying to read MatlabRoot from Registry ,so I can use it in my include > and lib paths. > like this : > GET_FILENAME_COMPONENT(MATLAB_ROOT_PATH > [HKEY_LOCAL_MACHINE\\SOFTWARE\\MathWorks\\MATLAB\\7.0;MATLABROOT] ABSOLUTE) > message(${MATLAB_ROOT_PATH})

[CMake] Read Windows Registry value

2009-02-09 Thread elizabeta petreska
HelloI am trying to read MatlabRoot from Registry ,so I can use it in my include and lib paths. like this : GET_FILENAME_COMPONENT(MATLAB_ROOT_PATH [HKEY_LOCAL_MACHINE\\SOFTWARE\\MathWorks\\MATLAB\\7.0;MATLABROOT] ABSOLUTE) message(${MATLAB_ROOT_PATH}) But the message only prints /registry. Wher

Re: [CMake] ctest with cmake without compiler

2009-02-09 Thread Bill Hoffman
Verweij, Arjen wrote: Hi, Yes, it certainly disables some checks. Thanks for the pointer. However, on an NT system without Visual Studio for instance, but with nmake.exe (or make.exe of msys), I still cannot have cmake generate Makefiles: $ cmake . CMake Error: CMake was unable to find a build

Re: [CMake] ctest with cmake without compiler

2009-02-09 Thread Verweij, Arjen
Hi, Yes, it certainly disables some checks. Thanks for the pointer. However, on an NT system without Visual Studio for instance, but with nmake.exe (or make.exe of msys), I still cannot have cmake generate Makefiles: $ cmake . CMake Error: CMake was unable to find a build program corresponding t