Re: [CMake] cmake side effects: possible bug

2006-08-27 Thread Michael Bell
On 8/27/06, Alan W. Irwin <[EMAIL PROTECTED]> wrote: On 2006-08-27 16:30-0400 William A. Hoffman wrote: > At 12:00 PM 8/27/2006, Steve Johns wrote: >> Michael Bell wrote: >>>> ADD_CUSTOM_TARGET(makeExecutable ALL) >>>> FOREACH(file ${SCRIPTS}) >>&

Re: [CMake] cmake side effects: possible bug

2006-08-24 Thread Michael Bell
wrote: Michael Bell wrote: > Ok, it certainly makes sense that running cmake globally would > simplify things, which is a good thing. It does seem to cause a > problem for me that maybe you can help me work around: > > Say I have a several subdirectories, each with C++ code and perl > w

Re: [CMake] cmake side effects: possible bug

2006-08-24 Thread Michael Bell
lly. Note that I am running cmake only once, before any of the above. Everything I wrote about happens when I run make. thanks, michael On 8/23/06, Brad King <[EMAIL PROTECTED]> wrote: Michael Bell wrote: > All, > > I am running cmake 2.4.3 on solaris. > > In many of my sub

[CMake] cmake side effects: possible bug

2006-08-23 Thread Michael Bell
All, I am running cmake 2.4.3 on solaris. In many of my subdirectories, I have commands to copy files to a release directory and make some of them executable: ADD_CUSTOM_TARGET(makeExecutable ALL) FOREACH(file ${SCRIPTS}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file} ${EXECUTABLE_

Re: [CMake] Solaris using gcc to link instead of g++

2006-08-07 Thread Michael Bell
ct basis. -Bill At 11:56 AM 8/7/2006, Michael Bell wrote: >Bill, > >So cmake detects solaris and decides to use gcc? If I use g++, it >works for me now (with gcc 3.3.1). Should I file this as a bug? > >Using g++ would be the perferable result for me, but at the very >least, li

Re: [CMake] Solaris using gcc to link instead of g++

2006-08-07 Thread Michael Bell
+ they did not link. -Bill At 10:36 AM 8/7/2006, Michael Bell wrote: >Hi, > >When compiling ITK2.8 on Solaris 5.9 with gcc 3.3.1, files are being >compiled correctly with g++, but libraries are being linked with gcc. > From a random link.txt: >gcc -fPIC -shared -Wl,-hlibI

[CMake] Solaris using gcc to link instead of g++

2006-08-07 Thread Michael Bell
Hi, When compiling ITK2.8 on Solaris 5.9 with gcc 3.3.1, files are being compiled correctly with g++, but libraries are being linked with gcc. From a random link.txt: gcc -fPIC -shared -Wl,-hlibITKIO.so.2.8 -o ../../bin/libITKIO.so.2.8.0 ... This problem requires me to manually link stdc+

[CMake] Possible Configure_File bug

2006-06-05 Thread Michael Bell
Hi, I use cmake with perl to help me manage directories. A perl script might have something like this: my $installdir = "@EXECUTABLE_OUTPUT_PATH@"; The CMakeLists.txt file would use CONFIGURE_FILE to set the path automatically: CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file} ${EXECUT