[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

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

2009-07-08 Thread Steven Van Ingelgem
r32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 mingw32-make.exe[1]: Leaving directory `C:/tmp/CMCheckWhatEver/CMakeFiles/CMakeTmp' 2009/7/8 Eric Noulard > 2009/7/8 Steven Van Ingelgem : > > > > > > 2009/7/8 Eric Noulard > > >

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

2009-07-08 Thread Steven Van Ingelgem
2009/7/8 Eric Noulard -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 the error log... So I t

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

2009-07-08 Thread Steven Van Ingelgem
ruct the makefile from hand inside 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 > 2009/7/8 Steven Van Ingelgem : > > Hi, > > > &g

[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 2.7\sh

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 : > On Wed, Jun 03, 2009 at 01:09:09PM +0200, Steven Van Ingelgem wrote: >> When I "make" it, it says: >> Linking C executable ../../bi

[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 ) when I ask to show the directories, what I get

Re: [CMake] file(READ) issue?

2009-03-25 Thread Steven Van Ingelgem
reading in the file... > > You can replace semi-colons like this with escaped semi-colons: > STRING(REGEX REPLACE ";" ";" ZCONF_H "${ZCONF_H}") > > Then CMake will treat the variable ZCONF_H as one large string that has > embedded (escaped) s

[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 Kitwar

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 > 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

[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* * _

Re: [CMake] add_dependencies has a wrong order?

2009-02-25 Thread Steven Van Ingelgem
t;> Steven >> >> >> 2009/2/25 Michael Wild >> >> I think you misunderstand add_dependencies. The command adds a dependency >>> of dlib_httpclient on dlib, i.e. dlib_httplclient DEPENDS ON dlib. It has >>> nothing to do with the order the libraries appe

Re: [CMake] add_dependencies has a wrong order?

2009-02-25 Thread Steven Van Ingelgem
hen > 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} d

[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

[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 C:\TEMP\CVS\CMake\U

[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: erro

[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 .saver instead of .app. But how could I make this work? Thanks! ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/list

[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

Re: [CMake] Passing parameters via command prompt

2008-11-26 Thread Steven Van Ingelgem
26 Eric Noulard <[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 bui

Re: [CMake] Passing parameters via command prompt

2008-11-26 Thread Steven Van Ingelgem
cfg entry. grtz, Steven 2008/11/26 David Cole <[EMAIL PROTECTED]> > There is not a good/easy way to do this that I can think of off the top of > my head... > Why do you need to tell where a variable came from...? > What are you going to do differently based on this information? &

[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:\tmp>cmake . -G"MinGW Makefiles" -- T

[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 -ar

Re: [CMake] wxWidgets: 2.8.9

2008-10-03 Thread Steven Van Ingelgem
) ENDIF(BUILD_SHARED_LIBS) Greetings, 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] 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] 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 lis

[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] 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: >> >> Ther

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

Re: [CMake] try_compile: more verbose format wanted

2008-07-14 Thread Steven Van Ingelgem
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. 2008/7/14 Bill Hoffman <[EMAIL PROTECTED]>: > Steven Van Ingelgem wrote: > >> Hi all, >> >> >> I am trying to convert

Re: [CMake] try_compile: more verbose format wanted

2008-07-14 Thread Steven Van Ingelgem
dvparse.c dvparse.h # dvScan dvscan.c dvscan.h ) 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 CMake

[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\datadraw>cmake . -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 pre

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
a" inside the first library, and use those 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 mo

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
n 1 shared library... 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 ${PTH

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
he linking), 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

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
I have 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

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
t in cmake 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

Re: [CMake] static library linking

2008-06-15 Thread Steven Van Ingelgem
27;t set 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 PR

[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 does

Re: [CMake] Compiling a file during CMake creation

2008-06-09 Thread Steven Van Ingelgem
AIL 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 wa

[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 k

[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

Re: [CMake] Embed an icon into a program

2008-05-06 Thread Steven Van Ingelgem
a > > > > On Tue, May 6, 2008 at 1: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 ap

[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

[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 `cmEL

Re: [CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread Steven Van Ingelgem
efault in 2003 and earlier > > Let me know if that works or not. > > > HTH, > David > > > > On 3/5/08, Steven Van Ingelgem <[EMAIL PROTECTED]> wrote: > > > > The problem is that I don't call perl directly... It is being called > > from within the

Re: [CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread Steven Van Ingelgem
an <[EMAIL 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 look

[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 enviro

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.

[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.

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/uu

Re: [CMake] check_include_file macro

2008-03-01 Thread Steven Van Ingelgem
> On Sat, Mar 1, 2008 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 "

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

Re: [CMake] check_include_file macro

2008-03-01 Thread Steven Van Ingelgem
is case. Greetings On 01/03/2008, Andreas Schneider <[EMAIL PROTECTED]> wrote: > Steven Van Ingelgem wrote: > > Hi, > > > > > Hi, > > > > > I'm testing with the "check_include_file" macro but I have an issue with > it. > &g

[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 fo

[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 d

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), t

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? > > >

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 fou

[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) n

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

2008-01-30 Thread Steven Van Ingelgem
PROTECTED]> wrote: > Steven Van Ingelgem wrote: > > The problem in fact is in cmcommand.h @ line 67: "InvokeInitialPass" > > > > Here there is done the pass through "ExpandArguments", which removes > > the knowledge of the quoted/unquoted nature of t

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

2008-01-30 Thread Steven Van Ingelgem
deep problem, and rather difficult 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

Re: [CMake] cmake and upx

2008-01-29 Thread Steven Van Ingelgem
Check the modules for something like "selfexecutablepackers". Just add a POST_BUILD step & everythin would be fine ;-) On 29/01/2008, Filipe Sousa <[EMAIL PROTECTED]> wrote: > Hi! > > I'm trying to use upx to compress the final executable but I have a > few problems. > What I did was adding a cu

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

2008-01-28 Thread Steven Van Ingelgem
d by "VERBATIM". 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: > > I

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 cle

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

[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

[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::vector, std::allocator >, std::allocator, std::allocator > > >&, const char*): Assertion `in_remote[0] != '\"'' faile

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, > >

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, > > > &

[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 CMake@cmake

[CMake] problem running CPack

2008-01-22 Thread Steven Van Ingelgem
When I run the following, I get this output: [EMAIL PROTECTED]:/src/WebAztec$ cpack -G DEB WebAztec CMake Error: Error in cmake code at /usr/share/cmake-2.5/Modules/CMakeGenericSystem.cmake:24: Unknown CMake command "SET_PROPERTY". CPack Error: CPack project name not specified But when I run "m

Re: [CMake] Can't get static executable

2008-01-11 Thread Steven Van Ingelgem
Sorry Eneko, I should have been more clear. It works nicely in CVS under Linux because the "-L -Wl,-Bstatic -l"flags get set correctly. Under a Mac this doesn't work because they use v401 of GCC, which seems to not understand those flags. The change which is needed should be to allow the full pa

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 l

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 no

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

2007-12-30 Thread Steven Van Ingelgem
lot again! On 12/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 oppose

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

2007-12-30 Thread Steven Van Ingelgem
wrote: > On Sunday 30 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

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

2007-12-30 Thread Steven Van Ingelgem
now where it is (I as a person do of course). I know it's in the same dir as "cl", but no variable tells me where "cl" is... -- Steven On 12/30/07, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > On Saturday 29 December 2007, Steven Van Ingelgem wrote: > >

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 smar

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 I

[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? Than

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, Brando

[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] Adding static libraries

2007-12-13 Thread Steven Van Ingelgem
in the library search path is searched. > > I mentioned this on the mailing list a while back, and I was told > that this flag was going to be added by default. I don't know if > that ever happened or what version it made it in. > > Also, note that if you have a .a

[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 wh

[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 po

[CMake] How to pass a write-parameter to a "MACRO"?

2007-12-01 Thread Steven Van Ingelgem
What I want to do is to pass a parameter to a macro which will be "SET" at the end of the macro. In fact I want it to behave a little as a "function" with it's own variable scope. Does anyone know how I could do that? Thanks, Steven ___ CMake mailing l

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

Re: [CMake] CMAKE_CXX_COMPILER: problem setting

2007-11-10 Thread Steven Van Ingelgem
App.cpp -o /Users/steven/WebAztec/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: > > H

[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] Problem using ccache & cmake

2007-11-05 Thread Steven Van Ingelgem
the macro from my end). Either way, it would be nice if it could be supported ;) On 11/5/07, Pierre Chifflier <[EMAIL PROTECTED]> wrote: > On Mon, Nov 05, 2007 at 04:24:51PM +0100, Steven Van Ingelgem wrote: > > Hi, > > > > > > I had a problem trying

[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 . CM