[CMake] [MacOSX] How to compile for certain SDK?

2009-07-20 Thread Steven Van Ingelgem
Hi, I checked and in Darwin.cmake there are several items like CMAKE_OSX_ARCHITECTURES_DEFAULT and CMAKE_OSX_DEPLOYMENT_TARGET_DEFAULT... But... I can't set them properly in my own CMakeLists.txt file. As such, when I set the minimum version to 10.4, it still will try to compile against v10.5 of

[CMake] conflicting types for built-in function 'snprintf'

2009-07-08 Thread Steven Van Ingelgem
Hi, I tried this call: CHECK_FUNCTION_EXISTS(snprintf HAS_snprintf) Which results in this error being generated: C:\MinGW\bin\gcc.exe -g -ggdb -O0 -Wall -Werror -DCHECK_FUNCTION_EXISTS=snprintf -o CMakeFiles\cmTryCompileExec.dir\CheckFunctionExists.c.obj -c C:\Program Files\CMake

Re: [CMake] conflicting types for built-in function 'snprintf'

2009-07-08 Thread Steven Van Ingelgem
this script). 3) I think this is the only feasible way in fact... Although I find this the least nicest way, and as such I didn't try that one. Grtz, Steven 2009/7/8 Eric Noulard eric.noul...@gmail.com 2009/7/8 Steven Van Ingelgem ste...@vaningelgem.be: Hi, I tried this call

Re: [CMake] conflicting types for built-in function 'snprintf'

2009-07-08 Thread Steven Van Ingelgem
2009/7/8 Eric Noulard eric.noul...@gmail.com -fno-builtin is not a definition, and try_compile (following the cmake docs) will add it to add_definitions(), maybe it will work, but I think that's also not a very clean solution ;). I tried your solution, but I didn't see the parameter added into

Re: [CMake] conflicting types for built-in function 'snprintf'

2009-07-08 Thread Steven Van Ingelgem
-ladvapi32 mingw32-make.exe[1]: Leaving directory `C:/tmp/CMCheckWhatEver/CMakeFiles/CMakeTmp' 2009/7/8 Eric Noulard eric.noul...@gmail.com 2009/7/8 Steven Van Ingelgem ste...@vaningelgem.be: 2009/7/8 Eric Noulard eric.noul...@gmail.com -fno-builtin is not a definition

[CMake] Weird binary directory problem

2009-06-03 Thread Steven Van Ingelgem
Hi, I have the following setup: CMakeLists.txt [have project()] externals\CMakeLists.txt [add_subdirectory(file)] externals\file\CMakeLists.txt [have project()] The problem I am facing is because in the last txt-file I have: add_executable(file srcs) when I ask to show the directories, what I

Re: [CMake] Weird binary directory problem

2009-06-03 Thread Steven Van Ingelgem
Yes, but only for the base-project, not for the project where I did an add_subdirectory for... 2009/6/3 Tyler Roscoe ty...@cryptio.net: On Wed, Jun 03, 2009 at 01:09:09PM +0200, Steven Van Ingelgem wrote: When I make it, it says: Linking C executable ../../bin/file But the current binary

Re: [CMake] file(READ) issue?

2009-03-25 Thread Steven Van Ingelgem
-colons: STRING(REGEX REPLACE ; ; ZCONF_H ${ZCONF_H}) Then CMake will treat the variable ZCONF_H as one large string that has embedded (escaped) semi-colons in it. HTH, David On Sun, Mar 22, 2009 at 6:07 AM, Steven Van Ingelgem ste...@vaningelgem.be wrote: Hi, I'm trying to read

Re: [CMake] Windows DLL project generates dll, pdb, ilk but no lib

2009-03-22 Thread Steven Van Ingelgem
That did the trick! Thanks for pointing it out. 2009/3/22 Philip Lowman phi...@yhbt.com On Sat, Mar 21, 2009 at 7:09 PM, Steven Van Ingelgem ste...@vaningelgem.be wrote: Hi all, I have a Windows DLL project. This project generates a dll, a pdb, an ilk and an idb... And no errors

[CMake] file(READ) issue?

2009-03-22 Thread Steven Van Ingelgem
Hi, I'm trying to read in a C-header file with file(READ): file(READ zconf.in.h ZCONF_H) !! But this variable contains no ; whatsoever? How can I ask to read it in completely? Thanks, Steven ___ Powered by www.kitware.com Visit other Kitware

[CMake] Windows DLL project generates dll, pdb, ilk but no lib

2009-03-21 Thread Steven Van Ingelgem
Hi all, I have a Windows DLL project. This project generates a dll, a pdb, an ilk and an idb... And no errors or warnings whatsoever. But there is no .lib to see? How can I make it, or how can I figure out why it's not generating it? I'm using CMake CVS version, and MS VC 2005. Grtz, Steven

[CMake] COMPILE_DEFINITIONS

2009-03-11 Thread Steven Van Ingelgem
Hi all, How can I add multiple COMPILE_DEFINITIONS for 1 source file? I tried with a foreach loop, I tried with an array to COMPILE_DEFINITIONS. In the first case, the latest is retained, in the last case only the first one is set. Thanks, Steven* *

[CMake] add_dependencies has a wrong order?

2009-02-25 Thread Steven Van Ingelgem
I have: add_dependencies(dlib_httpclient dlib) But in my cmakelists I have: TARGET_LINK_LIBRARIES(${PROJECT_NAME} dlib dlib_httpclient) Conclusion: it will change itself to bin/libdlib.a bin/libdlib_httpclient.a instead I would expect bin/libdlib_httpclient.a bin/libdlib.a as I told it to add

Re: [CMake] add_dependencies has a wrong order?

2009-02-25 Thread Steven Van Ingelgem
you link ${PROJECT_NAME}. HTH Michael On 25. Feb, 2009, at 14:15, Steven Van Ingelgem wrote: I have: add_dependencies(dlib_httpclient dlib) But in my cmakelists I have: TARGET_LINK_LIBRARIES(${PROJECT_NAME} dlib dlib_httpclient) Conclusion: it will change itself to bin/libdlib.a

Re: [CMake] add_dependencies has a wrong order?

2009-02-25 Thread Steven Van Ingelgem
appear on the command line when you link ${PROJECT_NAME}. HTH Michael On 25. Feb, 2009, at 14:15, Steven Van Ingelgem wrote: I have: add_dependencies(dlib_httpclient dlib) But in my cmakelists I have: TARGET_LINK_LIBRARIES(${PROJECT_NAME} dlib dlib_httpclient) Conclusion

[CMake] CMake: use new curl

2009-02-19 Thread Steven Van Ingelgem
Hi all, How can I (on windows) do the following: cmake .. -DCMAKE_USE_NEW_CURL=1 It always results in an error (upon compilation)? Scanning dependencies of target cmcurl [ 16%] Building C object Utilities/cmcurl-7.19.0/lib/CMakeFiles/cmcurl.dir/file.obj In file included from

[CMake] bootstrap error with CVS code

2009-01-07 Thread Steven Van Ingelgem
g++ -I/root/CMake/Source -I/root/CMake/Bootstrap.cmk -c /root/CMake/Source/cmBootstrapCommands.cxx -o cmBootstrapCommands.o /root/CMake/Source/cmFileCommand.cxx: In member function âbool cmFileInstaller::InstallFile(const char*, const char*, bool)â: /root/CMake/Source/cmFileCommand.cxx:1052:

[CMake] [MacOSX] Create screensaver

2008-12-19 Thread Steven Van Ingelgem
Hi, How can I make a screensaver project in CMake? What I understand is that a screensaver project is saved under projectname.saver instead of projectname.app. But how could I make this work? Thanks! ___ CMake mailing list CMake@cmake.org

[CMake] Passing parameters via command prompt

2008-11-26 Thread Steven Van Ingelgem
Hi, How can I determine which parameters have been entered via command line, which come from the script and which from the cache? For example: MESSAGE(STATUS TEST (before): ${TEST}) SET(TEST a) MESSAGE(STATUS TEST (after): ${TEST}) C:\tmpcmake . -GMinGW Makefiles -- TEST

Re: [CMake] Passing parameters via command prompt

2008-11-26 Thread Steven Van Ingelgem
[EMAIL PROTECTED] 2008/11/26 Steven Van Ingelgem [EMAIL PROTECTED]: What I would like to do is create some kind of batch generation for every combination of debug/release, static/dynamic. So I would call: echo building static release cmake -D cfg=release -D link=static . make all make

[CMake] Having per-source file different includes

2008-11-26 Thread Steven Van Ingelgem
Hi, Is it possible to change the include_directories per source file? I know I could do set_source_file_property( ... COMPILE_DEFINITIONS -Itesting... ), but this is not very portable I think? Is there a better way? Thanks, Steven ___ CMake mailing

[CMake] file-glob question

2008-11-10 Thread Steven Van Ingelgem
Hi all, I'm trying to do the following: file(GLOB PLUGINS plugins/*) This returns all the absolute paths to the plugins. Which is fine. But, when I try: file(GLOB PLUGINS RELATIVE plugins/*) It gives me an error about file GLOB requires a glob expression after the directory Is this a bug

[CMake] Error in linking

2008-11-06 Thread Steven Van Ingelgem
Hi all, I finally got my application to compile under Mac OSX, but now I am beating the wall again in the linking procedure. Could someone tell me what is wrong in this line (cmake generated): /usr/bin/c++ -O2 -D__WXOSX_CARBON__ -O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc

[CMake] wxWidgets: 2.8.9

2008-10-03 Thread Steven Van Ingelgem
Is it possible to add wxWidgets 2.8.9 to the list? It has been released as stable. Thanks, Steven ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] wxWidgets: 2.8.9

2008-10-03 Thread Steven Van Ingelgem
, Steven 2008/10/3 Steven Van Ingelgem [EMAIL PROTECTED] Is it possible to add wxWidgets 2.8.9 to the list? It has been released as stable. Thanks, Steven ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] FindwxWidgets doesn't work (properly)

2008-08-06 Thread Steven Van Ingelgem
around line 452 461 there is being searched for the library directory... But... What if you compile like me only a unicode version? Then the following will never be found: NAMES msw/build.cfg mswd/build.cfg Greetings, Steven ___ CMake mailing

Re: [CMake] FindwxWidgets doesn't work (properly)

2008-08-06 Thread Steven Van Ingelgem
Yeah, I did that and that worked ;-) 2008/8/6 Miguel A. Figueroa-Villanueva [EMAIL PROTECTED] Change the line to the following and let me know if it works: NAMES msw/build.cfg mswd/build.cfg mswu/build.cfg mswud/build.cfg ___ CMake mailing list

[CMake] try_compile: more verbose format wanted

2008-07-14 Thread Steven Van Ingelgem
Hi all, I am trying to convert datadraw into a CMake project, but I'm running against this problem: C:\TEMP\datadrawcmake . -G MinGW Makefiles -- Building datadraw... CMake Error at cmake/prebuilt.cmake:41 (MESSAGE): datadraw failed to build. This is a needed file for the database

Re: [CMake] try_compile: more verbose format wanted

2008-07-14 Thread Steven Van Ingelgem
) set_source_files_properties(dvparse.c dvparse.h dvscan.c dvscan.h PROPERTIES GENERATED TRUE) == What I would expect is that CMake looks in the correct directory, being the /src one, and not the CMakeTmp one. Greetings, Steven 2008/7/14 Steven Van Ingelgem [EMAIL

Re: [CMake] try_compile: more verbose format wanted

2008-07-14 Thread Steven Van Ingelgem
Yes it does 2008/7/14 Bill Hoffman [EMAIL PROTECTED]: Steven Van Ingelgem wrote: There was no error generated because there was no real error ;-). Please see my second mail, in that one I investigated it a little more. I did see your second email. It is looking for those files

Re: [CMake] try_compile: more verbose format wanted

2008-07-14 Thread Steven Van Ingelgem
BTW, I updated the sources in https://datadraw.svn.sourceforge.net/svnroot/datadraw/trunk. TIA 2008/7/14 Steven Van Ingelgem [EMAIL PROTECTED]: Yes it does 2008/7/14 Bill Hoffman [EMAIL PROTECTED]: Steven Van Ingelgem wrote: There was no error generated because there was no real error

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
the .a's in the commandline as it should do, but rather link it via -Wl,-Bstatic... And I really need those static links, because no single other library on the system exports the required symbols, not even the shared ones. Greetings 2008/6/15 Steven Van Ingelgem [EMAIL PROTECTED]: Hi, I

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
cvs this should have been resolved... Meaning that if I say in my CMakeLists file to link against the static library, it should just keep that link... Not try to be smart and change it ;-). Greetings, Steven 2008/6/15 Alan W. Irwin [EMAIL PROTECTED]: On 2008-06-15 11:47+0200 Steven Van Ingelgem

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
no idea what's going on, but getting a list of ld which libraries it will link would certainly be helpful. Thanks 2008/6/15 Alan W. Irwin [EMAIL PROTECTED]: On 2008-06-15 19:28+0200 Steven Van Ingelgem wrote: Hi Alan, I don't know why, but if I take the build command from cmake, and I insert

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
), it still tries to link against pthread, rt libc... I have no idea why? Doesn't it regenerate the makefiles when you modify the CMakeLists.txt? Thanks 2008/6/15 Alan W. Irwin [EMAIL PROTECTED]: On 2008-06-15 21:58+0200 Steven Van Ingelgem wrote: Hi Alan, It doesn't want to link

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
... Is there somehow I can turn this off? Thanks! 2008/6/15 Steven Van Ingelgem [EMAIL PROTECTED]: Hmmm? I don't seem to be able to make it link correctly? I do: set_property(TARGET ${SUB_PROJECT} PROPERTY IMPORTED_LOCATION ${PTHREAD} ${RT} ${LIBC}) But it's still somehow linking wrongly

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
to calculate stuff in there, but they're of no use whatsoever inside the second shared library... Because this one only uses symbols exported from the libsomename.so, not from lib100m.a. Hopefully that makes my issue more clear ;). Greetings 2008/6/15 Steven Van Ingelgem [EMAIL PROTECTED]: Another

[CMake] static library linking

2008-06-14 Thread Steven Van Ingelgem
Hi, I have a question about CMP0003... When I give the full path to a static library, it's supposed to link against that one... But right now I'm linking against: /usr/lib/libpthread.a (message before the target_link_libraries call) This results however in -Wl,-Bstatic -lpthread... Which doesn't

[CMake] Compiling a file during CMake creation

2008-06-09 Thread Steven Van Ingelgem
Hi, I want to compile a file when parsing the CMakeLists.txt... I tried the following: TRY_COMPILE( PROJ_OK ${PROJECT_SOURCE_DIR}/bin ${PROJECT_SOURCE_DIR}/externals/proj proj ) But this is returning false... What could I have done wrong? It is doing something, but I don't

Re: [CMake] Compiling a file during CMake creation

2008-06-09 Thread Steven Van Ingelgem
PROTECTED]: On Monday 09 June 2008, Steven Van Ingelgem wrote: Hi, I want to compile a file when parsing the CMakeLists.txt... Why ? Maybe there is already a ready-to-use macro which does what you want t do ? Do you want to test for something or do you want to build something you

[CMake] linking to .so's

2008-05-21 Thread Steven Van Ingelgem
Hi, I have a question about how to link (via CMake) to specific .so's. I know I need to use target_link_libraries. But what happens then is that the so is linked against the directory where it's in. Is there a possibility (i know rpath does exist, but I don't know exactly how to use it) to have

[CMake] Embed an icon into a program

2008-05-06 Thread Steven Van Ingelgem
Hi, To embed an icon into a program on Windows with VS, you just add it to the source files. This approach however doesn't seem to work with MinGW makefiles (on windows too). Is there anyway I can make this work? I know there is a tool windres which supposedly takes a .rc file and converts it

Re: [CMake] Embed an icon into a program

2008-05-06 Thread Steven Van Ingelgem
:51 PM, Steven Van Ingelgem [EMAIL PROTECTED] wrote: Hi, To embed an icon into a program on Windows with VS, you just add it to the source files. This approach however doesn't seem to work with MinGW makefiles (on windows too). Is there anyway I can make this work? I know

[CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread Steven Van Ingelgem
Hi, I am under Windows (VS2003). If I run ADD_CUSTOM_COMMAND, does the COMMAND run like a cmd environment? In particular looking at the PATH variable? I ask this because the output of my script indicates it cannot find perl, which is perfectly accessible because I added it to the environment

Re: [CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread Steven Van Ingelgem
PROTECTED] wrote: Steven Van Ingelgem wrote: Hi, I am under Windows (VS2003). If I run ADD_CUSTOM_COMMAND, does the COMMAND run like a cmd environment? In particular looking at the PATH variable? I ask this because the output of my script indicates it cannot find perl, which

Re: [CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread Steven Van Ingelgem
, Steven Van Ingelgem [EMAIL PROTECTED] wrote: The problem is that I don't call perl directly... It is being called from within the openssl sources... I can find perl perfectly with the FindPerl script, but somehow the add custom command doesn't take the PATH variable into account when

[CMake] Bootstrap failed under Ubuntu

2008-03-05 Thread Steven Van Ingelgem
cmSystemTools.cxx:(.text+0x62f): undefined reference to `cmELF::cmELF(char const*)' cmSystemTools.cxx:(.text+0x63d): undefined reference to `cmELF::GetRPath()' cmSystemTools.cxx:(.text+0x65a): undefined reference to `cmELF::GetRunPath()' cmSystemTools.cxx:(.text+0xa0f): undefined reference to

Re: [CMake] Detecting linux distro?

2008-03-03 Thread Steven Van Ingelgem
check uname -a and cat /etc/issue.net... Worked for me :) On 03/03/2008, Stephen Quinney [EMAIL PROTECTED] wrote: I'm sure I'm not the first person to need to do this but I can't see an obvious solution. I want to be able to detect which Linux system the package is building on, i.e. is it

Re: [CMake] check_include_file macro

2008-03-02 Thread Steven Van Ingelgem
Would it solve my problem if (in my case) I set HAS_UUID_H to NOTFOUND? On 02/03/2008, Bill Hoffman [EMAIL PROTECTED] wrote: Steven Van Ingelgem wrote: The use case here is more like: - run CMake: check_include_file(uuid/uuid.h HAS_UUID_H) if(not HAS_UUID_H) -- Fatal error

[CMake] PKG installer on Mac

2008-03-02 Thread Steven Van Ingelgem
Hi, I have created a CPack installation via make package... It's like 3M big, when I run the installation wizard, I select a different directory, and the wizard says it'll take 8M on my hard drive... I install it, but it creates just usr/bin (the directories) inside the destination directory...

[CMake] check_include_file macro

2008-03-01 Thread Steven Van Ingelgem
Hi, I'm testing with the check_include_file macro but I have an issue with it. I need it to stop working if the include file is not found, and re-check the next time it is ran... But how can I achieve that? Because the behaviour I got is that it runs but doesn't re-check anymore... Thanks for

Re: [CMake] check_include_file macro

2008-03-01 Thread Steven Van Ingelgem
Thanks Philip :) I noticed that one too, but isn't there a way to do it from within CMakeLists? On 01/03/2008, Philip Lowman [EMAIL PROTECTED] wrote: On Sat, Mar 1, 2008 at 10:09 AM, Steven Van Ingelgem [EMAIL PROTECTED] wrote: In fact what I want is check_include_file( uuid/uuid.h

Re: [CMake] check_include_file macro

2008-03-01 Thread Steven Van Ingelgem
at 10:09 AM, Steven Van Ingelgem [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: In fact what I want is check_include_file( uuid/uuid.h HAS_UUID_H ). Where this check is a blocking check (in other words, cmake will stop processing the cmakelists.txt)... The next time

[CMake] FindwxWidgets: couldn't find path on windows

2008-02-13 Thread Steven Van Ingelgem
Hi, FIND_PATH (line 378) couldn't find the path to my wxWidgets installation because it was checking the registry key of the installation. This directory didn't exist anymore, but I would expect the FIND_PATH function to continue searching until a directory has been found that matched (which it

Re: [CMake] FindASPELL.cmake finds /usr/bin/aspel with Find_Library

2008-02-09 Thread Steven Van Ingelgem
Personally I would expect it to find /usr/lib/libaspell.so.15, not a directory... (on my system /usr/lib/aspell is a dir) On 09/02/2008, Bill Hoffman [EMAIL PROTECTED] wrote: Andreas Pakulat wrote: Hi, I've got something really weird here. USing CMake from CVS (just updated), the

Re: [CMake] Specifying Post-build step in CMakeLists.txt

2008-02-08 Thread Steven Van Ingelgem
http://www.cmake.org/HTML/Documentation.html search for: post_build On 08/02/2008, Malhotra, Anupam [EMAIL PROTECTED] wrote: Hi In Visual Studio project properties, we can specify the 'Post-build step' in Project settings. Can these settings be made in CMakeLists.txt? Thanks and

Re: [CMake] Problem compiling on XCode @ Leopard

2008-02-07 Thread Steven Van Ingelgem
The problem is that I cannot because I want my application to run on 10.4+ On 07/02/2008, Sean McBride [EMAIL PROTECTED] wrote: On 2/7/08 11:02 PM, Steven Van Ingelgem said: _main, referenced from: start in crt1.10.5.so symbol(s) not found for architecture i386 collect2: ld returned 1 exit

[CMake] Problem compiling on XCode @ Leopard

2008-02-07 Thread Steven Van Ingelgem
Hi, I don't know if this is a known problem, but I'm trying to compile an executable at a Mac. It compiles nicely with the generator Unix Makefiles, but when I compile it under Debug mode in the generator Xcode, it gives the error: _main, referenced from: start in crt1.10.5.so symbol(s) not

Re: [CMake] Unneeded escaping: how to stop it?

2008-01-30 Thread Steven Van Ingelgem
to solve. Do you want me to submit it to the bug tracker? On 28/01/2008, Steven Van Ingelgem [EMAIL PROTECTED] wrote: Hi Brandon, That was probably because it was too late to think clearly. I'm normally already chaotic, but when I'm sleepy it is worse a factor 1000! Please find enclosed

Re: [CMake] Unneeded escaping: how to stop it?

2008-01-30 Thread Steven Van Ingelgem
Thanks for the explanation ;-). In fact that's what I am doing now: ${BASH} -c ... which works nicely. I just thought that the COMMAND would be executed as is, and that VERBATIM meant there is no escaping... Hence my confusion On 30/01/2008, Brad King [EMAIL PROTECTED] wrote: Steven Van

Re: [CMake] Unneeded escaping: how to stop it?

2008-01-28 Thread Steven Van Ingelgem
. But the first one keeps eluding me and I think this is a bug in CMake (just updated CVS version). Greetings On 28/01/2008, Brandon Van Every [EMAIL PROTECTED] wrote: On Jan 28, 2008 1:44 AM, Steven Van Ingelgem [EMAIL PROTECTED] wrote: It didn't help very much though :S Now I get: COMMAND

[CMake] Linux cmake . core dumped

2008-01-27 Thread Steven Van Ingelgem
Hi, Using a CVS version from a few minutes ago, I receive this: cmake: /src/CMake/Source/cmLocalGenerator.cxx:2224: std::string cmLocalGenerator::ConvertToRelativePath(const std::vectorstd::basic_stringchar, std::char_traitschar, std::allocatorchar , std::allocatorstd::basic_stringchar,

[CMake] Unneeded escaping: how to stop it?

2008-01-27 Thread Steven Van Ingelgem
Hi, I'm working on a SLES10. I have an add_custom_command with in it's command: LDFLAGS=-L${PROJECT_SOURCE_DIR}/lib -ldl ./configure ...etc... Now if I go and check the configure log, I see that the LDFLAGS are interpreted as -L${PROJECT_SOURCE_DIR}/lib\ -ldl (watch the escaping of the

Re: [CMake] Unneeded escaping: how to stop it?

2008-01-27 Thread Steven Van Ingelgem
No :) Thanks for pointing this out! On 28/01/2008, Brandon Van Every [EMAIL PROTECTED] wrote: On Jan 27, 2008 9:20 PM, Steven Van Ingelgem [EMAIL PROTECTED] wrote: Hi, I'm working on a SLES10. I have an add_custom_command with in it's command: LDFLAGS=-L${PROJECT_SOURCE_DIR

Re: [CMake] Unneeded escaping: how to stop it?

2008-01-27 Thread Steven Van Ingelgem
It didn't help very much though :S Now I get: COMMAND if [ ! -e TEST ]; then echo ok echo 2 echo test; fi == if [ ! -e TEST ]; then echo ok echo \test\; /dev/null fi So clearly the first case was better :) On 28/01/2008, Steven Van Ingelgem [EMAIL PROTECTED] wrote: No :) Thanks

[CMake] VS makefiles

2008-01-23 Thread Steven Van Ingelgem
Hi, I was wondering why there are no VS makefiles? (run like nmake -f project.mak). I know you could run them from the command prompt with something like devenv ..., but that is not exactly the same ;-). Greetings ___ CMake mailing list

Re: [CMake] VS makefiles

2008-01-23 Thread Steven Van Ingelgem
Thanks for your answer Brandon, but where is the nmake support? Is it eclipse - nmake? Greetings On 24/01/2008, Brandon Van Every [EMAIL PROTECTED] wrote: On Jan 23, 2008 4:58 PM, Steven Van Ingelgem [EMAIL PROTECTED] wrote: Hi, I was wondering why there are no VS makefiles? (run like

Re: [CMake] VS makefiles

2008-01-23 Thread Steven Van Ingelgem
Ow!!! I'm so sorry to have bothered you. In my console, this generator was out of screen, and I didn't scrolled up :$. Thanks for your help though On 24/01/2008, Torsten Martinsen [EMAIL PROTECTED] wrote: Steven Van Ingelgem wrote: Hi, I was wondering why there are no VS makefiles

Re: [CMake] Can't get static executable

2008-01-11 Thread Steven Van Ingelgem
I'm anxiously waiting on this feature as well. I have been in communication with Brad King about this and he told me it's no easy feat. He has to rewrite a lot of the linking algorithm to allow archive-libraries. He also told me that it'll be available in CMake 2.6.0, so I'm afraid we're out of

Re: [CMake] FindwxWindows.cmake/FindwxWidgets.cmake

2008-01-05 Thread Steven Van Ingelgem
I think it would be wiser to disallow wx 2.4 altogether because it's ... old ... 2.8 is already out for a while and 3.0 is around the corner so 2.6 is aging as well... Imho FindwxWindows should be gone as well ;-) On 05/01/2008, Pau Garcia i Quiles [EMAIL PROTECTED] wrote: Hello, I've

Re: [CMake] How to find out the compiler directory?

2007-12-30 Thread Steven Van Ingelgem
December 2007, Steven Van Ingelgem wrote: Very true indeed, but that was not the point of me asking the question. The point is that CMake knows somehow where the compiler is (it's not in the path), but it doesn't allow me to make use of that knowledge. For instance I want to use the assembler

Re: [CMake] How to find out the compiler directory?

2007-12-30 Thread Steven Van Ingelgem
/30/07, Andreas Pakulat [EMAIL PROTECTED] wrote: On 30.12.07 18:09:49, Steven Van Ingelgem wrote: It's because CMake get the values from the registry ;-). So it's not known in the command line, but it's known to CMake... As opposed to *NIX, Windows is not 100% (insert a lot of healthy sarcasm

[CMake] How to find out the compiler directory?

2007-12-29 Thread Steven Van Ingelgem
I want to use MASM (ml64.exe on VS2005) to compile some files, but how can I find it's directory? If I know where the cl.exe is located it's the same directory + /x86_64, but the variable CMAKE_C_COMPILER only contains cl (which is not in the path!). What would my options be here? Thanks!

Re: [CMake] How to find out the compiler directory?

2007-12-29 Thread Steven Van Ingelgem
I'm using the CVS version. cl is unknown in my environment (not defined by the %PATH% variable), so CMake will probably get it from the registry. But I want to use the path that CMake found already inside my CMakeList.txt, not search it again ;-). On 12/29/07, Steven Van Ingelgem [EMAIL

Re: [CMake] CMake being too clever with library names

2007-12-29 Thread Steven Van Ingelgem
You can find more info in this bug report: http://public.kitware.com/Bug/view.php?id=3832 Brad is currently on holiday, but I hope once he return he will fix this. Greetings, Steven On 12/30/07, Rodolfo Lima [EMAIL PROTECTED] wrote: Hi people. Sometimes I feel that CMake tries to be smarter

[CMake] call a configure command

2007-12-22 Thread Steven Van Ingelgem
Hi, How can I call a configure command at compilation time? (so not at the cmake . call?) Thanks! ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Re: call a configure command

2007-12-22 Thread Steven Van Ingelgem
I solved it with writing out a bash script which checks the existence of some files to not recompile the external library every time. after that I just add the add_custom_target because it needed to be made dependable on some other targets. Thanks a lot for your hints Rodolfo! On 12/22/07,

[CMake] Adding static libraries

2007-12-13 Thread Steven Van Ingelgem
Hi, I was talking to Miguel about the recent FindwxWidgets changes because they didn't work out on for static libraries on a Mac. Summarizing the issue is that CMake makes the (wrong) assumption that what you want to add are shared libraries (at least on a Mac). Let me explain in more detail

Re: [CMake] Adding static libraries

2007-12-13 Thread Steven Van Ingelgem
it in. Also, note that if you have a .a and .dylib in the same path it will always pick the .dylib file. No magic flags for that, I'm afraid. James On Dec 13, 2007, at 1:58 PM, Steven Van Ingelgem wrote: Hi, I was talking to Miguel about the recent FindwxWidgets changes because they didn't

[CMake] Dynamically add source files

2007-12-02 Thread Steven Van Ingelgem
Hi all, I don't know if this has been done already, but I needed something like this, so I wrote it. What does it do? If you have a directory structure like: /src/defines/Header.h /src/defines/Header.cpp /src/dir.h /src/dir.cpp It will add all files under /src while maintaining the relative

Re: [CMake] CMAKE_CXX_COMPILER: problem setting

2007-11-19 Thread Steven Van Ingelgem
you can help me a little further with that? Thanks! On 11/10/07, Steven Van Ingelgem [EMAIL PROTECTED] wrote: The XCode project works perfectly (except for the target PACKAGE, but that I still need to work a little on myself first). But at least I am able to build it in both Release Debug

[CMake] CMAKE_CXX_COMPILER: problem setting

2007-11-10 Thread Steven Van Ingelgem
Hi, I tried today on a Mac: ccmake . change there the CMAKE_CXX_COMPILER setting from /usr/bin/c++ - /usr/bin/g++ but it doesn't get saved inside the CMakeCache, and everything is still being compiled with c++ instead of g++ What can I do to fix this or is this an issue in CMake? Thanks

Re: [CMake] CMAKE_CXX_COMPILER: problem setting

2007-11-10 Thread Steven Van Ingelgem
/bin/WebAztec.build/Debug/WebAztec.build/Objects-normal/i386/MyApp.o To my eyes those two lines are completely different :S, but maybe you know more? Thanks On 11/10/07, Bill Hoffman [EMAIL PROTECTED] wrote: Steven Van Ingelgem wrote: Hi Bill, You could find more info here as I

[CMake] Problem using ccache cmake

2007-11-05 Thread Steven Van Ingelgem
Hi, I had a problem trying to use ccache with cmake the following way: $ export GCC=ccache gcc $ export CC=ccache cc $ export CXX=ccache g++ $ cmake . (in the root of the -clean- CMake CVS directory) This resulted in the following output: $ rm CMakeCache.txt CMakeFiles/ -Rf cmake . CMake