Re: [CMake] CONFIGURE_FILE output not cleaned up

2006-08-28 Thread Brandon J. Van Every
Eduard Bloch wrote: #include * Brandon J. Van Every [Fri, Aug 25 2006, 01:19:13PM]: Eduard Bloch wrote: Okay. I made a similar thing... removed the absolute path completely so it is now generated in CMAKE_BINARY_DIR and I added ${CMAKE_BINARY_DIR} to the INCLUDE_DI

Re: [CMake] Using cmake under windows

2006-08-28 Thread Yann Renard
Brad King wrote: Yann Renard wrote: Brad King wrote: You need to run CMake from the same command prompt in which the environment is set. From that same command prompt try: mkdir myproj-build cd myproj-build cmake c:/path/to/myproj -G"NMake Makefiles" Make sure you have a clean source tree in

Re: [CMake] Using cmake under windows

2006-08-28 Thread Brad King
Yann Renard wrote: > Brad King wrote: >> You need to run CMake from the same command prompt in which the >> environment is set. From that same command prompt try: >> >> mkdir myproj-build >> cd myproj-build >> cmake c:/path/to/myproj -G"NMake Makefiles" >> >> Make sure you have a clean source tree

Re: [CMake] Using cmake under windows

2006-08-28 Thread Yann Renard
Brad King wrote: Yann Renard wrote: You did not run cmake / cmakesetup from the correct command prompt. Therefore your env vars 'LIB' and 'INCLUDE' are not set correct. Take a look into your start menu (PlatformSDK -> OpenBuildEnv Window -> ...) and don't open your command prompt by executing cm

Re: [CMake] Using cmake under windows

2006-08-28 Thread Brad King
Yann Renard wrote: >> You did not run cmake / cmakesetup from the correct command prompt. >> Therefore your env vars 'LIB' and 'INCLUDE' are not set correct. >> Take a look into your start menu (PlatformSDK -> OpenBuildEnv Window >> -> ...) and don't open your command prompt by executing cmd.exe. >

Re: [CMake] Using cmake under windows

2006-08-28 Thread Yann Renard
Arjen Markus wrote: typing 'set' at the windows prompt reports the variables to be set correctly. Well, that at least is one thing. What happens if you try to compile a small file by typing the compile cmmand used by TRY_COMPILE into a DOS box? Something like: cl.exe -o tst.obj -c tst.c Or

Re: [CMake] custom command question

2006-08-28 Thread Doug Henry
Thanks for the explaination.  I added the files to the target list as suggested by Filipe, and it worked.  It is nice to know this is the proper way to do it.On 8/28/06, Brad King <[EMAIL PROTECTED]> wrote: Doug Henry wrote:> No, since it is a dependency of a source file that is included in the> e

Re: [CMake] custom command question

2006-08-28 Thread Brad King
Doug Henry wrote: > No, since it is a dependency of a source file that is included in the > executable I would expect it to be handled (it was in previous > releases). It seems that cmake does know about it, because it gives an > error with the correct path to the file that needs to be generated.

Re: [CMake] custom command question

2006-08-28 Thread Doug Henry
No, since it is a dependency of a source file that is included in the executable I would expect it to be handled (it was in previous releases).  It seems that cmake does know about it, because it gives an error with the correct path to the file that needs to be generated.  I don't know why cmake wi

Re: [CMake] Using cmake under windows

2006-08-28 Thread Brad King
Yann Renard wrote: > I'm trying to use cmake under windows in order to generate VC8 > makefiles. I have read > http://cmake.org/Wiki/CMake_Generator_Specific_Information chapter about > windows and written down a sript that looks like this : > > set path=d:\yrenard\platform-sdk\bin;%path% > set in

[CMake] Support for Compaq Visual Fortran?

2006-08-28 Thread Arjen Markus
Hello, I have trouble getting CMake to recognise Compaq Visual Fortran as a valid Fortran compiler under Windows. Philippe Poilbarbe sent me his configuration module for CVF, but he also noted that there is another problem - CVF does not like the default options used by TRY_COMPILE. I have been

Re: [CMake] custom command question

2006-08-28 Thread Filipe Sousa
Doug Henry wrote: > Something about the custom command behavior has changed slightly and I am > hoping I am just missing something. I have been able to do the following in > the past: > > # > # reswrap log.sql file > # > > SET(DBNAME log_sql) > SET(DBS ${PROJECT_BINARY_DIR}/${DBNAME}.h) > SET(LO

Re: [CMake] Using cmake under windows

2006-08-28 Thread Eric Noulard
My fingers slipped sorry for the last message. 2006/8/28, Yann Renard <[EMAIL PROTECTED]>: Eric, thank you for trying to solve the problem. I have tried both command line version of cmake and gui version (cmakesetup) Tried with the command line prompt you suggested (I had many target choices

Re: [CMake] Using cmake under windows

2006-08-28 Thread Arjen Markus
Yann Renard wrote: however, when calling 'cmake .' in my directory (even in the sample directory provided by cmake documentation), the linker complains not finding 'user32.lib'. This library is present in the 'd:yrenard\platform-sdk\lib' directory. The error happens before cmake does anyt

Re: [CMake] Using cmake under windows

2006-08-28 Thread Christian Ehrlicher
Von: Yann Renard <[EMAIL PROTECTED]> > Arjen Markus wrote: > > Yann Renard wrote: > > > >> Cheers guys, > >> > >> I'm trying to use cmake under windows in order to generate VC8 > >> makefiles. I have read > >> http://cmake.org/Wiki/CMake_Generator_Specific_Information chapter > >> about windows

Re: [CMake] Using cmake under windows

2006-08-28 Thread Eric Noulard
I forgot to answer to the list previously so 2006/8/28, Yann Renard <[EMAIL PROTECTED]>: Eric Noulard wrote: > Hi Yann, > > Do you use CMake Windows GUI or command line? > > Could you try to launch cmake command line > in a "Visual Studio Command Prompt". > > Start Menu path should lok like: >

[CMake] Re: relative pathnames in projectfiles, and icon resources?

2006-08-28 Thread William A. Hoffman
At 10:59 PM 8/27/2006, [EMAIL PROTECTED] wrote: >>This is not possible with cmake. The projects depend on cmake being >>installed. > >That is an unwanted dependency. Is there a way to remove this dependency? >Thanks, >Erwin CMAKE_SUPPRESS_REGENERATION is the only way. Although I would not re

Re: [CMake] Using cmake under windows

2006-08-28 Thread Yann Renard
Arjen Markus wrote: Yann Renard wrote: Cheers guys, I'm trying to use cmake under windows in order to generate VC8 makefiles. I have read http://cmake.org/Wiki/CMake_Generator_Specific_Information chapter about windows and written down a sript that looks like this : set path=d:\yrenard\pl

[CMake] custom command question

2006-08-28 Thread Doug Henry
Something about the custom command behavior has changed slightly and I am hoping I am just missing something.  I have been able to do the following in the past:## reswrap log.sql file#SET(DBNAME log_sql) SET(DBS ${PROJECT_BINARY_DIR}/${DBNAME}.h)SET(LOGSQL ${PROJECT_SOURCE_DIR}/../data/log.sql)ADD_

Re: [CMake] Using cmake under windows

2006-08-28 Thread Arjen Markus
Yann Renard wrote: Cheers guys, I'm trying to use cmake under windows in order to generate VC8 makefiles. I have read http://cmake.org/Wiki/CMake_Generator_Specific_Information chapter about windows and written down a sript that looks like this : set path=d:\yrenard\platform-sdk\bin;%path%

[CMake] Using cmake under windows

2006-08-28 Thread Yann Renard
Cheers guys, I'm trying to use cmake under windows in order to generate VC8 makefiles. I have read http://cmake.org/Wiki/CMake_Generator_Specific_Information chapter about windows and written down a sript that looks like this : set path=d:\yrenard\platform-sdk\bin;%path% set include=d:\yrena