[CMake] Parameter LANGUAGE in set_source_files_properties

2008-07-07 Thread zia
I have a little problem. I have project's tree and several files with c extension and I want to compile one file by g++ compiler and not c compiler. ./Trunk | -TEST | -test.c -test1.c -test2.c -CMakeLists.txt | -CMakeLists.txt - I make in

[CMake] Problem with uppercase file extensions in CMake

2008-07-07 Thread zia
I have several files with uppercase file extensions. for example: TEST.C TEST.H TEST2.CPP TEST2.H and this file is not compiling by CMake. CMake doesn't see this file. CMAKE_C_SOURCE_FILE_EXTENSIONS variable has a value equal c How do I solution this problem or to add in

Re: [CMake] Parameter LANGUAGE in set_source_files_properties

2008-07-07 Thread Eric Noulard
2008/7/7 [EMAIL PROTECTED]: I have a little problem. I have project's tree and several files with c extension and I want to compile one file by g++ compiler and not c compiler. ./Trunk | -TEST | -test.c -test1.c -test2.c -CMakeLists.txt | -CMakeLists.txt

Re: [CMake] is it possbile to export environment varibles from cmake scripts?

2008-07-07 Thread Alexander Bubnov
It is clear. I just would like to know a similiar command of cmake. ...it is a pity there is no one. Thanks. 2008/7/7, Timenkov Yuri [EMAIL PROTECTED]: On Monday 07 July 2008 15:53:00 Alexander Bubnov wrote: Hello! Below simple example to clarify the problem. My

Re: [CMake] is it possbile to export environment varibles from cmake scripts?

2008-07-07 Thread Timenkov Yuri
On Monday 07 July 2008 16:07:54 Alexander Bubnov wrote: It is clear. I just would like to know a similiar command of cmake. ...it is a pity there is no one. You can export variables for child processes, but not for parent. Look for pkg-config: rather than exporting something, it just prints it

Re: [CMake] is it possbile to export environment varibles from cmake scripts?

2008-07-07 Thread Andreas Pakulat
On 07.07.08 16:07:54, Alexander Bubnov wrote: It is clear. I just would like to know a similiar command of cmake. ...it is a pity there is no one. You're misunderstanding. Its not possible for any given process (or program) to modify the environment of its parent process. So if you run an

Re: [CMake] How to find wxWidgets with cmake under Windows?

2008-07-07 Thread Werner Smekal
Hi Bob, I'm also using wxWidgets 2.8.7 with MinGW/CLI and as Miguel wrote, you need to pass some extra parameters so that cmake can find wxWidgets. I usually use the zipped wxWidgets package, set the WXWIN environment variable, then compile it, and then pass the following to cmake: cmake

Re: [CMake] is it possbile to export environment varibles from cmake scripts?

2008-07-07 Thread Alexander Bubnov
Thanks, Andreas and Yuri! 2008/7/7, Andreas Pakulat [EMAIL PROTECTED]: On 07.07.08 16:07:54, Alexander Bubnov wrote: It is clear. I just would like to know a similiar command of cmake. ...it is a pity there is no one. You're misunderstanding. Its not possible for any given process (or

Re: [CMake] Patch: Add NO_CACHE option to find_xxx commands

2008-07-07 Thread Miguel A. Figueroa-Villanueva
On Mon, Jul 7, 2008 at 2:39 AM, Timenkov Yuri wrote: On Monday 07 July 2008 10:26:49 Miguel A. Figueroa-Villanueva wrote: Hello, I would like to propose the addition of a NO_CACHE keyword to the find_xxx commands that would treat VAR as a non-cached variable. I have posted this as a feature

Re: [CMake] Patch: Add NO_CACHE option to find_xxx commands

2008-07-07 Thread Miguel A. Figueroa-Villanueva
On Mon, Jul 7, 2008 at 2:04 AM, Enrico Scholz wrote: Miguel A. Figueroa-Villanueva writes: I would like to propose the addition of a NO_CACHE keyword to the find_xxx commands that would treat VAR as a non-cached variable. Better wolution would be the equivalent of autoconf's './config.status

Re: [CMake] Patch: Add NO_CACHE option to find_xxx commands

2008-07-07 Thread Bill Hoffman
Miguel A. Figueroa-Villanueva wrote: On Mon, Jul 7, 2008 at 2:04 AM, Enrico Scholz wrote: Miguel A. Figueroa-Villanueva writes: I would like to propose the addition of a NO_CACHE keyword to the find_xxx commands that would treat VAR as a non-cached variable. Better wolution would be the

Re: [CMake] Patch: Add NO_CACHE option to find_xxx commands

2008-07-07 Thread Miguel A. Figueroa-Villanueva
On Mon, Jul 7, 2008 at 8:41 AM, Bill Hoffman wrote: Miguel A. Figueroa-Villanueva wrote: On Mon, Jul 7, 2008 at 2:04 AM, Enrico Scholz wrote: Miguel A. Figueroa-Villanueva writes: I would like to propose the addition of a NO_CACHE keyword to the find_xxx commands that would treat VAR as a

[CMake] An example of DEFINE_SYMBOL please

2008-07-07 Thread Mehdi Rabah
Hi, I need to set multiple symbols in one of my target of my project. I can't use add_definitions because I don't want to define those variable for all my targets, so I tried custom properties. set_target_properties( target PROPERTIES DEFINE_SYMBOL VALUE1 VALUE2 ) doesn't work : the function

Re: [CMake] An example of DEFINE_SYMBOL please

2008-07-07 Thread Yuri Timenkov
On Monday 07 July 2008 19:59:24 Mehdi Rabah wrote: Hi, I need to set multiple symbols in one of my target of my project. I can't use add_definitions because I don't want to define those variable for all my targets, so I tried custom properties. set_target_properties( target PROPERTIES

Re: [CMake] An example of DEFINE_SYMBOL please

2008-07-07 Thread Mike Jackson
supposedly you can do ADD_DEFINITIONS(...) ADD_LIBRARY(...) REMOVE_DEFINITIONS(...) which might work. -- Mike Jackson Senior Research Engineer Innovative Management Technology Services On Jul 7, 2008, at 12:09 PM, Yuri Timenkov wrote: On Monday 07 July 2008 19:59:24 Mehdi Rabah

[CMake] CommandLine VS GUI

2008-07-07 Thread Félix C. Morency
Hi, I'm using the cache to avoid multiple target of the same library: if( not libname_already_defined ) set( libname_already_defined TRUE CACHE INTERNAL TRUE ) ... endif( not libname_already_defined ) It works well under linux using the command line tool. The command line also produces a

Re: [CMake] Patch: Add NO_CACHE option to find_xxx commands

2008-07-07 Thread Enrico Scholz
Miguel A. Figueroa-Villanueva [EMAIL PROTECTED] writes: I would like to propose the addition of a NO_CACHE keyword to the find_xxx commands that would treat VAR as a non-cached variable. Better wolution would be the equivalent of autoconf's './config.status --recheck', e.g. reinvoking cmake

Re: [CMake] pkg-config and Cross_compiling

2008-07-07 Thread Alexander Neundorf
On Monday 07 July 2008, Hendrik Sattler wrote: Zitat von Alexander Neundorf [EMAIL PROTECTED]: On Wednesday 02 July 2008, Hendrik Sattler wrote: Am Mittwoch, 2. Juli 2008 18:59:37 schrieb Wookey: ... Additionally, I found that the include paths are another source of problems, not

Re: [CMake] Patch: Add NO_CACHE option to find_xxx commands

2008-07-07 Thread Miguel A. Figueroa-Villanueva
On Mon, Jul 7, 2008 at 1:04 PM, Enrico Scholz wrote: Miguel A. Figueroa-Villanueva writes: I would like to propose the addition of a NO_CACHE keyword to the find_xxx commands that would treat VAR as a non-cached variable. Better wolution would be the equivalent of autoconf's './config.status

Re: [CMake] Newbie creating shared objects on Mac

2008-07-07 Thread Alexander Neundorf
On Monday 07 July 2008, Gerrick Bivins wrote: Hello, I¹m trying to dive into Cmake and I¹ve tried creating new targets for an existing project using Cmake. So far everything Works ok but on Mac, my shared object targets are creating *.so files. I¹m not concerned about bundles and frameworks

Re: [CMake] Newbie creating shared objects on Mac

2008-07-07 Thread Bill Hoffman
Alexander Neundorf wrote: On Monday 07 July 2008, Gerrick Bivins wrote: Hello, I¹m trying to dive into Cmake and I¹ve tried creating new targets for an existing project using Cmake. So far everything Works ok but on Mac, my shared object targets are creating *.so files. I¹m not concerned about

Re: [CMake] Newbie creating shared objects on Mac

2008-07-07 Thread Gerrick Bivins
I realized I left out the fact that I'm using the swig module. Sorry about that. Does the SWIG_ADD_MODULE have a SWIG_ADD_LIBRARY equivalent? Alexander Neundorf wrote: On Monday 07 July 2008, Gerrick Bivins wrote: Hello, I¹m trying to dive into Cmake and I¹ve tried creating new targets for an

Re: [CMake] Patch: Add NO_CACHE option to find_xxx commands

2008-07-07 Thread Enrico Scholz
Miguel A. Figueroa-Villanueva [EMAIL PROTECTED] writes: Better wolution would be the equivalent of autoconf's './config.status --recheck', e.g. reinvoking cmake with empty cache but with original configuration options. ... Maybe I'm missing the point, so please explain how this would work

[CMake] Compiling java files to classes then creating a jar

2008-07-07 Thread Gerrick Bivins
Hello, Another newbie question, I think I know how to create .java files from swig using Cmake and I think I know how to create a jar file from .class BUT I¹m not sure how to call the java compiler (javac) on each .java file to create my .class files. For starters, how would I loop over the *.java

Re: [CMake] Patch: Add NO_CACHE option to find_xxx commands

2008-07-07 Thread Alexander Neundorf
On Monday 07 July 2008, Timenkov Yuri wrote: On Monday 07 July 2008 10:26:49 Miguel A. Figueroa-Villanueva wrote: Hello, I would like to propose the addition of a NO_CACHE keyword to the find_xxx commands that would treat VAR as a non-cached variable. I have posted this as a feature

Re: [CMake] Patch: Add NO_CACHE option to find_xxx commands

2008-07-07 Thread Miguel A. Figueroa-Villanueva
On Mon, Jul 7, 2008 at 6:25 PM, Alexander Neundorf wrote: On Monday 07 July 2008, Timenkov Yuri wrote: On Monday 07 July 2008 10:26:49 Miguel A. Figueroa-Villanueva wrote: Hello, I would like to propose the addition of a NO_CACHE keyword to the find_xxx commands that would treat VAR as a

Re: [CMake] Compiling java files to classes then creating a jar

2008-07-07 Thread Georgios Petasis
O/H Gerrick Bivins ??: Hello, Another newbie question, I think I know how to create .java files from swig using Cmake and I think I know how to create a jar file from .class BUT I'm not sure how to call the java compiler (javac) on each .java file to create my .class files. For starters,