Re: [CMake] linking to arbitrary libraries in linux.

2008-02-27 Thread Christopher Harvey
Philip Lowman wrote: > On Wed, Feb 27, 2008 at 8:08 PM, Christopher Harvey > <[EMAIL PROTECTED] > wrote: > > Philip Lowman wrote: > > On Wed, Feb 27, 2008 at 7:13 PM, Christopher Harvey > > <[EMAIL PROTECTED] >

Re: [CMake] Change Compiler flags for a single file.

2008-02-27 Thread Surya Kiran Gullapalli
On Thu, Feb 28, 2008 at 10:12 AM, Bill Lorensen <[EMAIL PROTECTED]> wrote: > That's how we do it in itk. It works just fine. How do you know it is > not working? To see the flags, go into your build tree, and look in > the file CMakeFiles/foo.dir/flags.make > > > What is the value of ${file}? I as

[CMake] linking to arbitrary libraries in linux.

2008-02-27 Thread Philip Lowman
On Wed, Feb 27, 2008 at 8:08 PM, Christopher Harvey <[EMAIL PROTECTED]> wrote: > Philip Lowman wrote: > > On Wed, Feb 27, 2008 at 7:13 PM, Christopher Harvey > > <[EMAIL PROTECTED] > wrote: > > > > Hi, > > Before I ask my question I want to clarify what I mean by

Re: [CMake] Change Compiler flags for a single file.

2008-02-27 Thread Bill Lorensen
That's how we do it in itk. It works just fine. How do you know it is not working? To see the flags, go into your build tree, and look in the file CMakeFiles/foo.dir/flags.make What is the value of ${file}? I assume that ${file} is a file with a .cxx (or .c) extension? Bill On Wed, Feb 27, 2008

Re: [CMake] Change Compiler flags for a single file.

2008-02-27 Thread Surya Kiran Gullapalli
On Thu, Feb 28, 2008 at 9:34 AM, Bill Lorensen <[EMAIL PROTECTED]> wrote: > SET_SOURCE_FILES_PROPERTIES(${file} PROPERTIES COMPILE_FLAGS -O0) > Nope, It did not work. Cmake is not using the compile flags for that specific file. That file is compiled with CMAKE_CXX_FALGS_RELEASE (like other files.

Re: [CMake] Change Compiler flags for a single file.

2008-02-27 Thread Bill Lorensen
SET_SOURCE_FILES_PROPERTIES(${file} PROPERTIES COMPILE_FLAGS -O0) On Wed, Feb 27, 2008 at 10:21 PM, Surya Kiran Gullapalli <[EMAIL PROTECTED]> wrote: > Hello all, > I'm building a project, where in one compilation of one file gets stuck due > to optimization flag (-O3) with gcc. I want to turn off

[CMake] Change Compiler flags for a single file.

2008-02-27 Thread Surya Kiran Gullapalli
Hello all, I'm building a project, where in one compilation of one file gets stuck due to optimization flag (-O3) with gcc. I want to turn off the optimization flag for that particular file only. I've done this. STRING (REPLACE "-O3" "" remove_opt_flag ${CMAKE_CXX_FLAGS_RELEASE}) SET_SOURCE_FILES

Re: [CMake] CMake and Lua

2008-02-27 Thread Brandon Van Every
On Wed, Feb 27, 2008 at 8:58 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Brandon Van Every wrote: > > > That's 2 cantankerous languages and a rather general problem domain. > > CMake script is a rather limited language. Not that hard to map it to > > Lua. > > I don't know, I have heard about

Re: [CMake] CMake and Lua

2008-02-27 Thread Bill Hoffman
Brandon Van Every wrote: That's 2 cantankerous languages and a rather general problem domain. CMake script is a rather limited language. Not that hard to map it to Lua. I don't know, I have heard about people using CMake for a general purpose language :) I don't think I have any idea

Re: [CMake] CMake and Lua

2008-02-27 Thread Brandon Van Every
On Wed, Feb 27, 2008 at 5:37 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > > Brandon Van Every wrote: > > > > I think if the automated translation tool had proven itself for a > > couple of years, it would be perfectly reasonable to force people to > > move on. So there is still that 2 year wi

Re: [CMake] library

2008-02-27 Thread Philip Lowman
On Wed, Feb 27, 2008 at 4:51 PM, Robert Fleming < [EMAIL PROTECTED]> wrote: > To solve the first problem I did: > > set_target_properties(rtf PROPERTIES LINK_FLAGS "/NODEFAULTLIB:msvcrt") > > Not sure if this is the best way. You'll want to wrap it with some > conditional statements checking you'

Re: [CMake] Python installation files on linux

2008-02-27 Thread Alan W. Irwin
On 2008-02-27 19:32+0100 Cedric Pinson wrote: Hi, i am new to cmake and i would like to use it to make a python module, but i don't know how to get the version of python installed on the system, how to select where the files should be installed considering the version of python ... I come fro

[CMake] linking to arbitrary libraries in linux.

2008-02-27 Thread Christopher Harvey
Hi, Before I ask my question I want to clarify what I mean by an "arbitrary library". There are libraries that are registered in the system and you can link to them like so: target_link_library(targetName GL SDL pq) and they get sent to the linker int the form: -lGL -lSDL -lpq that fine, but I have

Re: [CMake] CMake and Lua

2008-02-27 Thread Bill Hoffman
Brandon Van Every wrote: On Wed, Feb 27, 2008 at 4:34 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: Also, backwards compatibility is something we take very seriously. If someone picks CMake as a build tool, we have to respect that choice and try our best not to break that project. There are ve

Re: [CMake] Python installation files on linux

2008-02-27 Thread Brandon Van Every
On Wed, Feb 27, 2008 at 1:32 PM, Cedric Pinson <[EMAIL PROTECTED]> wrote: > Hi, > i am new to cmake and i would like to use it to make a python module, > but i don't know how to get the version of python installed on the > system, Such questions are specific to whatever tool you're trying to de

Re: [CMake] CMake and Lua

2008-02-27 Thread Brandon Van Every
On Wed, Feb 27, 2008 at 4:34 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > > Also, backwards compatibility is something we take very seriously. If > someone picks CMake as a build tool, we have to respect that choice and > try our best not to break that project. There are very large projects >

Re: [CMake] library

2008-02-27 Thread Robert Fleming
To solve the first problem I did: set_target_properties(rtf PROPERTIES LINK_FLAGS "/NODEFAULTLIB:msvcrt") Not sure if this is the best way. You'll want to wrap it with some conditional statements checking you're on windows, probably. Also, if you just want to ignore a library in debug, you can

Re: [CMake] CMake and Lua

2008-02-27 Thread Bill Hoffman
If people want a tower of babel set of languages that can drive CMake, they can do it now. Just write most of your build system in X, tell your users they have to install CMake and X. Then use the powerful language X to generate simple CMake files. (where X is python, tcl, perl, lua, or what

Re: [CMake] CMake and Lua

2008-02-27 Thread Peter Kümmel
James Mansion wrote: Ken Martin wrote: other's variables out of the box. But with the Modules directory we either have to have a copy of each module for every possible scripting language, on the fly converters between any two scripting languages, or something like that to make it work. Trying

Re: [CMake] Python installation files on linux

2008-02-27 Thread Hendrik Sattler
Am Mittwoch 27 Februar 2008 schrieb Cedric Pinson: > Hi, > i am new to cmake and i would like to use it to make a python module, > but i don't know how to get the version of python installed on the > system, how to select where the files should be installed considering > the version of python ... >

[CMake] Python installation files on linux

2008-02-27 Thread Cedric Pinson
Hi, i am new to cmake and i would like to use it to make a python module, but i don't know how to get the version of python installed on the system, how to select where the files should be installed considering the version of python ... I come from autotools and i would like to switch, cmake is

Re: [CMake] absolute rpath

2008-02-27 Thread Jörg Becker
On Monday, 25. February 2008 20:44:13 Alexander Neundorf wrote: > > > Use: > > > set_target_properties(hello PROPERTIES  INSTALL_RPATH . ) > > > > This doesn't work, too. The problem may be, that I don't understand the > > path expansion in cmake (or it is buggy). I tried the following things > > (

Re: [CMake] How to find_file by pattern

2008-02-27 Thread Laurent Humbertclaude
Hi, On Tue, Feb 26, 2008 at 7:31 PM, David Cole <[EMAIL PROTECTED]> wrote: > Try: > FILE(GLOB OMNIORB_VERSION_FILE "${OMNIORB_ROOT_DIR}/THIS_IS_OMNIORB_*" ) > Works like a charm ! Many thanks! For completeness, this is the rest of the version detection code: IF(OMNIORB_VERSION_FILE) GET_F

[CMake] library

2008-02-27 Thread Harsha
In VS you can ignore a specific library: Project -> Properties -> Linker -> Input -> Ignore Specific Libraries for a lib target add your own dependencies with directory: Project -> Properties -> Librarian -> Additional Dependencies Project -> Properties -> Librarian -> Additional Library Director

[CMake] Compile only, no link

2008-02-27 Thread jean-daniel . michaud
Hello, I'd like to know if it's possible to create a project, add source files to it, make those sources compile to objects, but do not create any executable or library. Something like: PROJECT(someproject) ADD_SOURCE_FILE(this.cpp that.cpp) # define some c flags here COMPILE_SOURCE And af

[CMake] Problem of dependencies

2008-02-27 Thread Guillaume Damiand
Hello, I have discovered cmake one week ago and I am very impressed by its powerful and facility of using. However, I have a problem concerning dependencies and I have not found any solutions in forums or documentations. I use 3 types of files .hh et .cc (as usual) and .icc for inline fonctions