Re: [CMake] How to link specific static libraries

2011-06-29 Thread Michael Hertling
On 06/29/2011 02:32 PM, Michael Wild wrote: > On 06/29/2011 02:30 PM, Stephen Torri wrote: >> Normally we use target_link_libraries to link against certain libraries. >> For example: >> >> target_link_libraries ( mytarget A B C ) >> >> Well when I am working on creating regressions tests for my

Re: [CMake] umask settings?

2011-06-29 Thread Michael Hertling
On 06/29/2011 10:01 PM, Clifford Yapp wrote: > I'm noticing that a make install done with CMake is not respecting > umask settings on Linux - is there some setting I need to tweak to get > it to do so? > > Thanks, > CY http://www.mail-archive.com/cmake@cmake.org/msg29928.html Regards, Michael _

Re: [CMake] Betr.: Re: Parallel make & custom command

2011-06-29 Thread Marcel Loose
On Wed, 2011-06-29 at 21:55 +0200, Marcel Loose wrote: Seems my webmail client completely screwed up the subject threading. Sorry for the noise. Best regards, Marcel Loose. ___ Powered by www.kitware.com Visit other Kitware open-source projects at h

Re: [CMake] Parallel make & custom command

2011-06-29 Thread Marcel Loose
On Wed, 2011-06-29 at 20:46 +0200, Michael Wild wrote: > On 06/29/2011 05:22 PM, Marcel Loose wrote: > > Hi all, > > > > I'm having a problem with a parallel 'make' where one or more sources > > are generated by a custom command. > > > > The situation is as follows. There are a couple of targets

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Quanah Gibson-Mount
--On Wednesday, June 29, 2011 9:43 PM +0200 Michael Wild wrote: As noted above, I tried both the variable names. In fact, I have now even stripped out the "APPLE" if: SET(INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") SET(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") I don't see ei

[CMake] umask settings?

2011-06-29 Thread Clifford Yapp
I'm noticing that a make install done with CMake is not respecting umask settings on Linux - is there some setting I need to tweak to get it to do so? Thanks, CY ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitw

[CMake] Betr.: Re: Parallel make & custom command

2011-06-29 Thread Marcel Loose
-- Marcel Loose Senior Software Engineer, Computing Group R&D, Astron, the Netherlands >>> Michael Wild 29-06-11 20:47 >>> On 06/29/2011 05:22 PM, Marcel Loose wrote: > Hi all, > > I'm having a problem with a parallel 'make' where one or more sources > are generated by a custom command. > > The

[CMake] New Module: FindSDL_gfx.cmake

2011-06-29 Thread David Demelier
Hello cmake users, I don't know how users usually send new modules so I try by mail. I made a cmake module for SDL_gfx library (http://www.ferzkopp.net/Software/SDL_gfx-2.0/) It's not a SDL official library but it is popular and a lot of games are using it. The FindSDL_gfx.cmake module fou

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Michael Wild
On 06/29/2011 09:33 PM, Quanah Gibson-Mount wrote: > --On Wednesday, June 29, 2011 9:27 PM +0200 Michael Wild > wrote: > >> On 06/29/2011 09:14 PM, Quanah Gibson-Mount wrote: >>> --On Wednesday, June 29, 2011 8:49 PM +0200 Michael Wild >>> wrote: >>> That's because on OS X you have to use t

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Quanah Gibson-Mount
--On Wednesday, June 29, 2011 9:27 PM +0200 Michael Wild wrote: On 06/29/2011 09:14 PM, Quanah Gibson-Mount wrote: --On Wednesday, June 29, 2011 8:49 PM +0200 Michael Wild wrote: That's because on OS X you have to use the INSTALL_NAME_DIR property (or alternatively, the CMAKE_INSTALL_NAME_

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Michael Wild
On 06/29/2011 09:14 PM, Quanah Gibson-Mount wrote: > --On Wednesday, June 29, 2011 8:49 PM +0200 Michael Wild > wrote: > >> That's because on OS X you have to use the INSTALL_NAME_DIR property (or >> alternatively, the CMAKE_INSTALL_NAME_DIR variable). > > I put: > > IF(APPLE) > SET(INSTALL_NA

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Quanah Gibson-Mount
--On Wednesday, June 29, 2011 8:49 PM +0200 Michael Wild wrote: That's because on OS X you have to use the INSTALL_NAME_DIR property (or alternatively, the CMAKE_INSTALL_NAME_DIR variable). I put: IF(APPLE) SET(INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") ENDIF() in CMakeLists.txt, and

Re: [CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Michael Wild
On 06/29/2011 08:27 PM, Quanah Gibson-Mount wrote: > I've managed to get cmake to correctly build mysql on Linux OSes, but I > have a continued problem with mysql on OSX. Specifically, cmake does > not install the mysql libraries with the correct RUNPATH settings. > > For example, prior to instal

Re: [CMake] Parallel make & custom command

2011-06-29 Thread Michael Wild
On 06/29/2011 05:22 PM, Marcel Loose wrote: > Hi all, > > I'm having a problem with a parallel 'make' where one or more sources > are generated by a custom command. > > The situation is as follows. There are a couple of targets (executables) > that depend on the same source file being generated b

[CMake] Runpath issues on OSX 10.6

2011-06-29 Thread Quanah Gibson-Mount
I've managed to get cmake to correctly build mysql on Linux OSes, but I have a continued problem with mysql on OSX. Specifically, cmake does not install the mysql libraries with the correct RUNPATH settings. For example, prior to installing to the destination path: sh-3.2# otool -L libmysqlcl

Re: [CMake] Empty CMAKE_CFG_INTDIR

2011-06-29 Thread Paul Baumer
Hi all, I have found the problem. I have moved the call to add_custom_target to a line after project(). Now it works. Thanks, Paul. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensour

Re: [CMake] Empty CMAKE_CFG_INTDIR

2011-06-29 Thread Jean-Christophe Fillion-Robin
Hi Paul, Hi Paul, On build system that don't handle multiple configuration (Makefile based), CMAKE_CFG_INTDIR will be "." On build system handling muli-configuration (Visual Studio, XCode ..), CMAKE_CFG_ INTDIR should be either Debug, Release .. If you build using ctest, make also sure you pass

Re: [CMake] Parallel make & custom command

2011-06-29 Thread Joris Dobbelsteen
On Wed, 2011-06-29 at 17:22 +0200, Marcel Loose wrote: > Hi all, > > I'm having a problem with a parallel 'make' where one or more sources > are generated by a custom command. > > The situation is as follows. There are a couple of targets (executables) > that depend on the same source file being

[CMake] Empty CMAKE_CFG_INTDIR

2011-06-29 Thread Paul Baumer
Hi, I have a custom target which basically calls the cmake install script. The install script can install both debug and release configs so I define the custom command with the -DBUILDTYPE=${CMAKE_CFG_INTDIR}, as follows: add_custom_target(My_Install_After_Build ALL COMMAND ${CMAKE_COMMAND} -DBUI

[CMake] Parallel make & custom command

2011-06-29 Thread Marcel Loose
Hi all, I'm having a problem with a parallel 'make' where one or more sources are generated by a custom command. The situation is as follows. There are a couple of targets (executables) that depend on the same source file being generated by a custom command. I notice that, when doing a parallel

[CMake] Fixed: "ctest -T Test" does not run tests, "ctest" and "make test" do

2011-06-29 Thread Joris Dobbelsteen
Fixed it. It works by executing: [?] $ cd ${WORKSPACE}/Build && /usr/bin/ctest -T Start [?] $ cd ${WORKSPACE}/Build && /usr/bin/ctest -T Test --output-on-failure - Joris On Wed, 2011-06-29 at 11:59 +0200, Joris Dobbelsteen wrote: > Hi all, > > I'm currently migrating from custom build scripts t

Re: [CMake] Selecting INSTALL target in Visual Studio Configuration by default

2011-06-29 Thread Paul Baumer
Thanks, the custom target works great. ___ 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/CMa

Re: [CMake] How to link specific static libraries

2011-06-29 Thread Michael Wild
On 06/29/2011 02:30 PM, Stephen Torri wrote: > Normally we use target_link_libraries to link against certain libraries. > For example: > > target_link_libraries ( mytarget A B C ) > > Well when I am working on creating regressions tests for my library, > called mytarget, I would use the same CM

[CMake] How to link specific static libraries

2011-06-29 Thread Stephen Torri
Normally we use target_link_libraries to link against certain libraries. For example: target_link_libraries ( mytarget A B C ) Well when I am working on creating regressions tests for my library, called mytarget, I would use the same CMake command to link against the boost unit test framework lib

Re: [CMake] [CMake ] Specify linker for a mixed language Fortran/C++ application (linux)

2011-06-29 Thread Michael Hertling
On 06/29/2011 10:04 AM, Yngve Inntjore Levinsen wrote: > Tirsdag 28 juni 2011 18.52.48 skrev Raphael Muenster : >> Yep, great) setting the LINKER_LANGUAGE to Fortran did it. >> >> Thanks, >> Raphael >> >> Am 28.06.2011 15:48, schrieb Brad King: >>> On 06/27/2011 02:39 PM, Raphael Münster wrote: >>

[CMake] "ctest -T Test" does not run tests, "ctest" and "make test" do

2011-06-29 Thread Joris Dobbelsteen
Hi all, I'm currently migrating from custom build scripts to cmake and it has been working quite good. At this point I'm integrating cmake/ctest with Jenkins continuous integration. However, I run into the problem that on the build server the system does not run the tests when executing "cd "${WO

Re: [CMake] [CMake ] Specify linker for a mixed language Fortran/C++ application (linux)

2011-06-29 Thread Yngve Inntjore Levinsen
Tirsdag 28 juni 2011 18.52.48 skrev Raphael Muenster : > Yep, great) setting the LINKER_LANGUAGE to Fortran did it. > > Thanks, > Raphael > > Am 28.06.2011 15:48, schrieb Brad King: > > On 06/27/2011 02:39 PM, Raphael Münster wrote: > >> # name of the project > >> PROJECT(Q2P1) > >> > >> enable_