[CMake] newbee on cmake/installing problem

2009-12-10 Thread ZOE KAPETAKI
Hi, I am trying to build Sundials (the version is 2.4) so I have to install CMake first. I am trying to install it on unix and I have downloaded and untared CMake-2.8.0.tar and CMake-2.8.0.tar.gz. I am using this page for instructions: http://www.cmake.org/cmake/help/install.html but when I

Re: [CMake] newbee on cmake/installing problem

2009-12-10 Thread Michael Wild
Just to be very clear and to avoid misunderstandings, I'm going to walk you through the steps of installing CMake. Comments will be prefixed by a # sign. # create a download directory mkdir -p ~/Downloads # change directory to the downloads location cd ~/Downloads # do the actual download (or

Re: [CMake] newbee on cmake/installing problem

2009-12-10 Thread Alan W. Irwin
On 2009-12-10 11:20- ZOE KAPETAKI wrote: Hi, I am trying to build Sundials (the version is 2.4) so I have to install CMake first. I am trying to install it on unix and I have downloaded and untared CMake-2.8.0.tar and CMake-2.8.0.tar.gz. I am using this page for instructions:

[CMake] ADD_CUSTOM_COMMAND

2009-12-10 Thread Keyan
hi, i am tryting to build java code in my otherwise c++ project. for some reason, i just cant get add_custom_command to do what i want it to do. here are the lines of code that i am currently trying: SET(MY_FILES FirstJavaFile SecondJavaFile) SET(CLASS_FILES ) SET(JAVA_FILES ) FOREACH(f

Re: [CMake] CMAKE vsprops or equivalent...

2009-12-10 Thread Tim St. Clair
I figured I would tickle this again, b/c it seemed like you knew a solution... Cheers, Tim On Wed, Dec 9, 2009 at 12:01 PM, Tim St. Clair timoth...@gmail.com wrote: Environment variable, for the exact reason you mentioned. On Wed, Dec 9, 2009 at 11:23 AM, Mike Jackson

Re: [CMake] CMAKE vsprops or equivalent...

2009-12-10 Thread David Cole
Compile time env settings may most easily be achieved (and in a cross-platform manner) by writing cmake scripts (called with cmake -P on the command line) and then using them as custom build steps via add_custom_command and add_custom_target calls. The scripts run in Visual Studio's environment,

Re: [CMake] CMAKE_C_FLAGS reset to empty string

2009-12-10 Thread Ingolf Steinbach
2009/12/8 Ingolf Steinbach ingolf.steinb...@googlemail.com: (Using cmake 2.6.4 on Linux). When I later call ccmake in the top-level build directory, the CMAKE_C_FLAGS variable does not contain the value specified in the toolchain file but is instead empty. The specified flags are not used for

[CMake] Cannot find source file.

2009-12-10 Thread Tim St. Clair
Do all files *have* to be present during generation? Or is there some lazy evaluation? The file it is looking for is one of many gen'd files. It would be a pain if I had to update all the command outputs in order to create the deps. -- Cheers, Timothy St. Clair

Re: [CMake] Cannot find source file.

2009-12-10 Thread Tyler Roscoe
On Thu, Dec 10, 2009 at 02:14:28PM -0600, Tim St. Clair wrote: Do all files *have* to be present during generation? Or is there some lazy evaluation? Look at the GENERATED property for source files. The file it is looking for is one of many gen'd files. It would be a pain if I had to update

Re: [CMake] Cannot find source file.

2009-12-10 Thread Alexander Neundorf
On Thursday 10 December 2009, Tyler Roscoe wrote: On Thu, Dec 10, 2009 at 02:14:28PM -0600, Tim St. Clair wrote: Do all files *have* to be present during generation? Or is there some lazy evaluation? Look at the GENERATED property for source files. The file it is looking for is one of

Re: [CMake] Is it safe to add properties to custom target?

2009-12-10 Thread Alexander Neundorf
On Wednesday 09 December 2009, Marcel Loose wrote: Hi all, In fact the subject title says it all. Is it safe to do, for example: add_custom_target(myTarget) set_target_properties(myTarget PROPERTIES LOCATION ${CMAKE_CURRENT_BINARY_DIR}) It seems to work fine, but I'm not sure this is

[CMake] How do I set generated scripts executable in CMakeLists.txt?

2009-12-10 Thread kent williams
Say I generate a script using CONFIGURE_FILE. How would I make it executable? In other words, is there a CMake way of doing this that will work on all CMake platforms? The way we deal with portability in our particular case is to use Tcl scripts. Our stuff won't work on any platform without