Re: [CMake] CMake cannot build a simple example on one of our computers

2007-12-04 Thread Bill Hoffman
Marcus wrote: Hi, CMake will not configure on one of our development machines. When I run CMake on this machine, it initially it says: -- Check for working C compiler: cl Then it crunches for about 15 minutes, and eventually displays the message: -- Check for working C compiler: cl - br

[CMake] CMake cannot build a simple example on one of our computers

2007-12-04 Thread Marcus
Hi, CMake will not configure on one of our development machines. When I run CMake on this machine, it initially it says: -- Check for working C compiler: cl Then it crunches for about 15 minutes, and eventually displays the message: -- Check for working C compiler: cl - broken CMake Erro

Re: [CMake] SET_TARGET_PROPERTIES question on MacOSX

2007-12-04 Thread Mike Jackson
On Dec 4, 2007, at 4:46 PM, Félix C. Morency wrote: Mike, Thank you for your precise answer. I will try this tomorrow. I have few other questions for you: 1.0) Why isn't CMake doing this automatically ? CMake will set the "install_path" for you if you use the SET_TARGET_PROPERTIES macr

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-04 Thread Olumide
Jesper Eskilson wrote: > I've uploaded a new version of the vcproj2cmake.rb script which does not > emit any add_locale() macros. > ... >> include_directories( >> C:/Program Files/Alias/Maya6.5/include >> ) > > You need double quotes around the path, since it contains spaces. > >> add_definitio

Re: [CMake] SET_TARGET_PROPERTIES question on MacOSX

2007-12-04 Thread Félix C. Morency
Mike, Thank you for your precise answer. I will try this tomorrow. I have few other questions for you: 1.0) Why isn't CMake doing this automatically ? 1.1) Is is just a CMake's missing feature or is there any technical issues ? I think QMake does it for you isn't is ? 2.0) I'm sure Apple has plen

Re: [CMake] SET_TARGET_PROPERTIES question on MacOSX

2007-12-04 Thread Mike Jackson
Welcome to the "can of worms" called "install_name_tool" on OS X. Yes, you can change 3rd party libs.. with one BIG caveat. Who ever compiled it needs to have compiled with the - Header_Pad_Max_install_Names (or something like that). If that was done then you should be able to change the lib

[CMake] SET_TARGET_PROPERTIES question on MacOSX

2007-12-04 Thread Félix C. Morency
Hi, The INSTALL_NAME_DIR is a string specifying the directory portion of the "install_name" field of shared libraries on Mac OSX to use in the installed targets (as taken from the current documentation). Is there any way of setting this property on a third party lib ? I checked the current CVS CMa

Re: [CMake] Test for ICC

2007-12-04 Thread James Bigler
but I want to specifically look for the intel compiler. I guess I could just exec icc and see what comes back. Checking for $CC=icc might be useful, but mine is set to /opt/intel/cc/10.0.023/bin/icc.. Any suggestions would be good. I use this: SET(MANTA_COMPILER_NAME_REGEXPR "icc.*$") IF(

[CMake] Test for ICC

2007-12-04 Thread Mike Jackson
I need to test for icc/icpc (The intel compiler). What would be the best way to do that? I could do: IF (NOT CMAKE_COMPILER_IS_GNUCC) but I want to specifically look for the intel compiler. I guess I could just exec icc and see what comes back. Checking for $CC=icc might be useful, but min

Re: [CMake] Windows ifort problems, possible bug

2007-12-04 Thread Bill Hoffman
Alin M Elena wrote: Hi Bill, Got a touch in the shell. It seems that it does not change anything. I have filled a bug report. It must not be in your path then... This is the error you are getting: [ 50%] Building Fortran object CMakeFiles/hello.dir/constants.obj 'touch' is not recognized as

RE: [CMake] Windows ifort problems, possible bug

2007-12-04 Thread Alin M Elena
Hi Bill, Got a touch in the shell. It seems that it does not change anything. I have filled a bug report. Alin -Original Message- From: Bill Hoffman [mailto:[EMAIL PROTECTED] Sent: 04 December 2007 18:10 To: [EMAIL PROTECTED] Cc: cmake@cmake.org Subject: Re: [CMake] Windows ifort prob

RE: [CMake] Windows ifort problems, possible bug

2007-12-04 Thread Dunlavy, Daniel M
Alin, Have you checked that your environment is set properly for ifort? Can you build from "cmd" or are you building from the shell provided with the Intel compiler. You can also check the Environment Variables from the System Control Panel? Have you added the path to your ifort libraries to Wind

Re: [CMake] Windows ifort problems, possible bug

2007-12-04 Thread Bill Hoffman
Alin M Elena wrote: Hi, NMAKE : fatal error U1077: 'touch' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : r

[CMake] Windows ifort problems, possible bug

2007-12-04 Thread Alin M Elena
Hi, Thank you Alan. I have reduced the problem to a simpler one. I tend to think that is a bug. It may be connected with the one found by Daniel Dunalvy. If I create a fortran project with a single file. It compiles, links and everything is ok. I have checked with nmake and Visual Studio 8 2005 g

[CMake] Error for ifort/nmake

2007-12-04 Thread Alan W. Irwin
On 2007-12-04 12:27- Alin M Elena wrote: Hi, I try to compile a simple fortran project with cmake, intel fortran compiler and nmake. However I get the following error nmake Scanning dependencies of target print [ 25%] Building Fortran object CMakeFiles/print.dir/source/constants.obj 'touc

Re: [CMake] nmake file create error

2007-12-04 Thread Ilya Shvetsov
What can i do ??? I attached the error as image file Thanks in advance... Ramazan You can run vsvarcall.bat оr tune your envorment variables manually -- Ilya Shvetsov (mailto:[EMAIL PROTECTED]) Lead Programmer KranX Productions (http://kranx.com/) __

Re: FW: [CMake] Rediscovering the compiler.

2007-12-04 Thread Brandon Van Every
On Dec 4, 2007 4:24 AM, Josef Karthauser <[EMAIL PROTECTED]> wrote: > > p.s. none of this explains why the compilers needed to be changed > without rebuilding! :) That's an entirely separate issue to do with the > fact that we made a transition of put putting the compilers and SDK > headers and li

RE: [CMake] Bug in EXECUTE_PROCESS?

2007-12-04 Thread Josef Karthauser
> -Original Message- > From: Jesper Eskilson [mailto:[EMAIL PROTECTED] On Behalf Of > Jesper Eskilson > Sent: 04 December 2007 13:41 > To: Josef Karthauser > Cc: cmake@cmake.org > Subject: Re: [CMake] Bug in EXECUTE_PROCESS? > > Josef Karthauser wrote: > > Is this a bug? > > > > EXECUTE_P

RE: [CMake] Creating a visual studio project with non .cpp or .h files in it.

2007-12-04 Thread Josef Karthauser
Hi folks, I'm still trying to solve this one - alas it's alluding me. I want to create a visual studio project file which only has non-compiling files in it, for instance CMake macro files or documentation. This I want so that people can easily edit them from within visual studio. I can't work

Re: [CMake] Bug in EXECUTE_PROCESS?

2007-12-04 Thread Jesper Eskilson
Josef Karthauser wrote: > Is this a bug? > > > > EXECUTE_PROCESS( > > COMMAND badcmd_that_doesnt_exist > > ERROR_VARIABLE ERROR > > ) > > IF(ERROR) > > MESSAGE(FATAL_ERROR "Error! Command doesn’t exist.") > > ENDIF(ERROR) > > > > as the fatal_error is

[CMake] Bug in EXECUTE_PROCESS?

2007-12-04 Thread Josef Karthauser
Is this a bug? EXECUTE_PROCESS( COMMAND badcmd_that_doesnt_exist ERROR_VARIABLE ERROR ) IF(ERROR) MESSAGE(FATAL_ERROR "Error! Command doesn't exist.") ENDIF(ERROR) as the fatal_error is never raised. If not, what's the canonical way of reliably det

[CMake] RE: CMake Digest, Vol 44, Issue 9

2007-12-04 Thread Alin M Elena
Box and PS3 were integrated in non-orthogonal ways into Visual Studio and in ways that CMake didn't support, and CMake 2.4.7 didn't allow us to make multiple platform visual studio files. Maybe 2.5 or 2.6 will give us more fl

[CMake] nmake file create error

2007-12-04 Thread Ramazan Girgin
Hi all, I want to create windows nmake file using cmake. When i want to create nmame makefile cmake gives error like this: *CMake error :The C compiler "C:\Program Files\Microsoft Visual Studio 8.0\VC\Bin\cl.exe " is not able to compile a simple test program.* *...* *...* *..* *NMAKE:fatal er

FW: [CMake] Rediscovering the compiler.

2007-12-04 Thread Josef Karthauser
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Brandon Van Every > Sent: 03 December 2007 20:06 > To: cmake@cmake.org > Subject: Re: [CMake] Rediscovering the compiler. > > On Dec 3, 2007 7:35 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > > > > No, there is no way currently i

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-04 Thread Jesper Eskilson
Olumide wrote: > Hello - > > I'm a CMake newbie and I'd appreciate help creating a makefile *from* a > Visual Studio .NET 2003 project/solution. I'm trying like to migrate my > projects to eclipse and I hope CMake will help make that transition. > > Many thanks, > > - Olumide > > > PS: I've al