Re: [CMake] help using try_run with custom build type

2009-07-09 Thread George Neill
Hi All, On Wed, Jul 8, 2009 at 2:29 AM, Denis Scherbakov wrote: > >> > It appears to fail because the compiler options do not >> make it in when >> > creating the executable ... is there something silly I >> have missed? >> > Also, I was wondering why TRY_RUN doesn't use the >> default flags >> >

Re: [CMake] help using try_run with custom build type

2009-07-08 Thread George Neill
Hi Denis, On Wed, Jul 8, 2009 at 2:29 AM, Denis Scherbakov wrote: > >> > It appears to fail because the compiler options do not >> make it in when >> > creating the executable ... is there something silly I >> have missed? >> > Also, I was wondering why TRY_RUN doesn't use the >> default flags >>

Re: [CMake] help using try_run with custom build type

2009-07-07 Thread George Neill
Hi all, On Mon, Jun 29, 2009 at 10:15 PM, George Neill wrote: > Hi folks, > > I apologize for the long email, but, I am having some troubles with > try_run (cmake 2.6.4/sun gcc/Solaris 10).  I have created my own > CMAKE_BUILD_TYPE called TEST and have set CMAKE_C_FLAGS_TEST to &

[CMake] help using try_run with custom build type

2009-06-29 Thread George Neill
Hi folks, I apologize for the long email, but, I am having some troubles with try_run (cmake 2.6.4/sun gcc/Solaris 10). I have created my own CMAKE_BUILD_TYPE called TEST and have set CMAKE_C_FLAGS_TEST to "-m64 -std=c99". Here's the .c code I am testing with, -bash-3.00$ cat !$ cat ../platform

Re: [CMake] FW: Cmake on Sun?

2009-04-16 Thread George Neill
Bill, On Thu, Apr 16, 2009 at 10:46 PM, Bill Hoffman wrote: > George Neill wrote: > >> >> I will try later tonight. >> >> When I reproduced this error earlier today ... I was doing an >> in-source bootstrap.  I ran the bootstrap twice, the first was using >

Re: [CMake] FW: Cmake on Sun?

2009-04-16 Thread George Neill
On Thu, Apr 16, 2009 at 3:36 PM, Bill Hoffman wrote: > George Neill wrote: >> >> On Thu, Apr 16, 2009 at 2:47 PM, Bill Hoffman >> wrote: >>> >>> George Neill wrote: >>>> >>>> On Thu, Apr 16, 2009 at 1:31 PM, Bill Hoffman >

Re: [CMake] FW: Cmake on Sun?

2009-04-16 Thread George Neill
On Thu, Apr 16, 2009 at 2:47 PM, Bill Hoffman wrote: > George Neill wrote: >> >> On Thu, Apr 16, 2009 at 1:31 PM, Bill Hoffman >> wrote: >>> >>> George Neill wrote: >>> >>>> I seem to remember running in to this issue when trying to b

Re: [CMake] FW: Cmake on Sun?

2009-04-16 Thread George Neill
On Thu, Apr 16, 2009 at 1:31 PM, Bill Hoffman wrote: > George Neill wrote: > >> >> I seem to remember running in to this issue when trying to build cmake >> on SS10/Solari10.  If I recall correctly, it turned out being an >> environment issue.  A conflict with GN

Re: [CMake] FW: Cmake on Sun?

2009-04-16 Thread George Neill
Bill, On Thu, Apr 16, 2009 at 1:03 PM, Bill Hoffman wrote: > indig...@blogistan.co.uk wrote: >> >> Quoting "Bartlett, Roscoe A" : >> >>> Hello, >>> >>> An associate of mine tried to build CMake 2.6.2 on a Sun machine and  got >>> lots of errors (see the attached). >>> >>> Does CMake work in the S

Re: [CMake] Fwd: CMAKE_INSTALL_PREFIX

2009-03-18 Thread George Neill
On Wed, Mar 18, 2009 at 2:50 PM, John Drescher wrote: > -- Forwarded message -- > > Please remember to send this to the cmake list as well. There are > experts who should be better help than me.. My apologies, I thought I was! Thanks, George. _

Re: [CMake] CMAKE_INSTALL_PREFIX

2009-03-18 Thread George Neill
John, On Wed, Mar 18, 2009 at 12:57 PM, John Drescher wrote: >> Here is what I do for Program Files >> >> string (REPLACE "\\" "/" PGM_FILES $ENV{PROGRAMFILES}) >> >> then I use PGM_FILES and there is no complaint about bad escape sequences. >> > BTW, here is the whole section: > > IF(WIN32) > >

[CMake] CMAKE_INSTALL_PREFIX

2009-03-18 Thread George Neill
Hi All, On windows, I pass CMAKE_INSTALL_PREFIX on the command line e.g. "-DCMAKE_INSTALL_PREFIX=c:\some\path". In my cmake code I use variable which contain the suffixes /lib, /man/man1 etc... The install commands end up looking like this, C:\some\path/man/man1/some_man_file In 2.4 this

Re: [CMake] typedef vs. macro

2009-02-02 Thread George Neill
On Tue, Feb 3, 2009 at 1:33 AM, George Neill wrote: > Hi All, > > I have ran in to some third party header code which looks like this > (shortened for this example) > > #ifdef OPTION > #define SOMETYPE int > #else > typedef int SOMETYPE; > #endif > &

[CMake] typedef vs. macro

2009-02-02 Thread George Neill
Hi All, I have ran in to some third party header code which looks like this (shortened for this example) #ifdef OPTION #define SOMETYPE int #else typedef int SOMETYPE; #endif Here is what I have come up with, CHECK_SYMBOL_EXISTS(SOMETYPE "type.h" HAVE_SOMETYPE_DEFINE) CHECK_TYPE_SIZE(SOMETY

[CMake] Proper way to write a FIND_PACKAGE

2009-01-06 Thread George Neill
All, Is this the recommended recipe to write FIND_PACKAGE() cmake scripts? http://vtk.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules TIA, George. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] cmake and sun workshop compiler.

2008-12-09 Thread George Neill
Bill, >> Do you have CXXFLAGS, CFLAGS, or LDFLAGS set in your environment before you >> run CMake that have gnu flags in them? > > I do not, > > [EMAIL PROTECTED]:~$ env | grep CC > [EMAIL PROTECTED]:~$ env | grep CXX [EMAIL PROTECTED]:~$ env | grep CFLAGS [EMAIL PROTECTED]:~$ env | grep CXXFLAG

Re: [CMake] cmake and sun workshop compiler.

2008-12-09 Thread George Neill
Bill, On Tue, Dec 9, 2008 at 9:43 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > George Neill wrote: >> >> Bill, >> >> On Tue, Dec 9, 2008 at 7:02 AM, Bill Hoffman <[EMAIL PROTECTED]> >> wrote: >>> >>> George Neill wrote: >>&g

Re: [CMake] cmake and sun workshop compiler.

2008-12-09 Thread George Neill
Bill, On Tue, Dec 9, 2008 at 7:02 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > George Neill wrote: >> >> Hi CMakers, >> >> I'd like to use cmake with the Sun cc/CC compiler on linux. What >> do I need to change to make this work? >> > >

[CMake] cmake and sun workshop compiler.

2008-12-08 Thread George Neill
Hi CMakers, I'd like to use cmake with the Sun cc/CC compiler on linux. What do I need to change to make this work? Thanks, George. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] if(MATCHES) broken??

2008-11-19 Thread George Neill
Matthew, On Wed, Nov 19, 2008 at 5:56 PM, Matthew Woehlke <[EMAIL PROTECTED]> wrote: > Can someone explain to me: > - why this doesn't work (prints "CFLAGS match broken!!") > - if it's supposed to work or if this is a bug > - a great work-around to this problem ;-) > > This is with cmake 2.6.2 > >

Re: [CMake] Path problem when building a jar file

2008-10-29 Thread George Neill
Robert, On Wed, Oct 29, 2008 at 6:14 AM, Robert Haines <[EMAIL PROTECTED]> wrote: > Hi George, > > > >> I filed a bug on this the other day and posted a temporary solution >> (attached to the bug) http://www.cmake.org/Bug/view.php?id=7832 >> >> Hope that helps, > > It certainly does, thank you ve

Re: [CMake] Path problem when building a jar file

2008-10-28 Thread George Neill
Hi Robert, On Tue, Oct 28, 2008 at 1:07 PM, Robert Haines <[EMAIL PROTECTED]> wrote: > Hi all, > > I am building a jar file but I can't get the paths right within it. > > I have a directory structure like this > source-root/org/some/package/.java > source-root/org/some/other/.java > and I want the

Re: [CMake] SS12 and -xcode=pic32

2008-10-28 Thread George Neill
On Tue, Oct 28, 2008 at 8:40 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > George Neill wrote: > >>> >>> To set the record straight for others reading this in the future, please >>> do >>> exactly what I suggested (which works) rather than trying s

Re: [CMake] SS12 and -xcode=pic32

2008-10-28 Thread George Neill
Alan, On Tue, Oct 28, 2008 at 1:00 AM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > On 2008-10-27 15:27-0500 George Neill wrote: > >> Alan, >> >> On Mon, Oct 27, 2008 at 3:10 PM, Alan W. Irwin >> <[EMAIL PROTECTED]> wrote: >>> >>>

Re: [CMake] Fortran to C mapping module

2008-10-27 Thread George Neill
Bill, On Mon, Oct 27, 2008 at 8:46 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > I have just checked in a module to help with the linking of Fortran from C. > I would appreciate some feedback, and perhaps some testing with different > Fortran compilers. Does anyone know of a web site that lists

Re: [CMake] SS12 and -xcode=pic32

2008-10-27 Thread George Neill
Bill, On Mon, Oct 27, 2008 at 3:55 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > George Neill wrote: >> >>> Setting these in the right place should work. >>> >>> project(foo) >>> set(CMAKE_SHARED_LIBRARY_C_FLAGS "-xcode=pic32") >&g

Re: [CMake] SS12 and -xcode=pic32

2008-10-27 Thread George Neill
On Mon, Oct 27, 2008 at 3:33 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > George Neill wrote: >> >> Alan, >> >> On Mon, Oct 27, 2008 at 3:10 PM, Alan W. Irwin >> <[EMAIL PROTECTED]> wrote: >>> >>> On 2008-10-27 12:54-0500 George Nei

Re: [CMake] SS12 and -xcode=pic32

2008-10-27 Thread George Neill
Alan, On Mon, Oct 27, 2008 at 3:10 PM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > On 2008-10-27 12:54-0500 George Neill wrote: > >> Hi All, >> >> I am using cmake 2.4.8 and Sun Studio 12. >> >> I am trying to overwrite these default cmake compiler se

[CMake] SS12 and -xcode=pic32

2008-10-27 Thread George Neill
Hi All, I am using cmake 2.4.8 and Sun Studio 12. I am trying to overwrite these default cmake compiler settings from Modules/Platorm/SunOS.cmake SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-KPIC") SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-KPIC") to SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-xcode=pic32") SE

Re: [CMake] mixed java/c project.

2008-10-20 Thread George Neill
Mathieu, On Mon, Oct 20, 2008 at 4:06 AM, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: > On Sat, Oct 18, 2008 at 7:48 PM, George Neill <[EMAIL PROTECTED]> wrote: >> Hi All, >> >> On Sat, Oct 18, 2008 at 2:01 AM, George Neill <[EMAIL PROTECTED]> wrote: >&g

Re: [CMake] mixed java/c project.

2008-10-20 Thread George Neill
Mathieu, On Mon, Oct 20, 2008 at 4:06 AM, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: > On Sat, Oct 18, 2008 at 7:48 PM, George Neill <[EMAIL PROTECTED]> wrote: >> Hi All, >> >> On Sat, Oct 18, 2008 at 2:01 AM, George Neill <[EMAIL PROTECTED]> wrote: >&g

Re: [CMake] mixed java/c project.

2008-10-18 Thread George Neill
Hi All, On Sat, Oct 18, 2008 at 2:01 AM, George Neill <[EMAIL PROTECTED]> wrote: > Hi all, > > I am trying to convert a project to cmake which has mixed java and c > compilations. Here's the project layout, > > project/ > -> src/c > -> src/java

[CMake] mixed java/c project.

2008-10-18 Thread George Neill
Hi all, I am trying to convert a project to cmake which has mixed java and c compilations. Here's the project layout, project/ -> src/c -> src/java I get the java project to build fine if I use the top level CMakeLists.txt file, but if I use add_subdirectory(src/java) in the top l

[CMake] CHECK_FUNCTION_EXISTS

2008-10-14 Thread George Neill
Hi All, I am using cmake 2.4.8, compiling on the solaris platform with SS12. I am running cmake like this, export CC=/path/to/SUNWSpro/bin/cc export CXX=/path/to/SUNWspro/bin/CC cmake -D"CMAKE_BUILD_TYPE:STRING=MYBUILDTYPE" ../path/to/src I have overridden these variables before any PROJECT (o

Re: [CMake] multi-line definitions

2008-09-24 Thread George Neill
Yuri >> On Tue, Sep 23, 2008 at 1:54 PM, Emmanuel Blot <[EMAIL PROTECTED]> wrote: >> >> The only way would be something like this: >> >> >> >> set(a "-mcpu=arm7tdmi -std=gnu99 -fgnu89-inline -finline-functions") >> >> set(a "${a} -ffunction-sections -fdata-sections ") >> >> set(a "${a} -fno-strict

Re: [CMake] multi-line definitions

2008-09-23 Thread George Neill
Hi Manu, On Tue, Sep 23, 2008 at 1:54 PM, Emmanuel Blot <[EMAIL PROTECTED]> wrote: >> The only way would be something like this: >> >> set(a "-mcpu=arm7tdmi -std=gnu99 -fgnu89-inline -finline-functions") >> set(a "${a} -ffunction-sections -fdata-sections ") >> set(a "${a} -fno-strict-aliasing -mno

Re: [CMake] hpux (cma vs. pthreads)

2008-08-14 Thread George Neill
Alexander, On Thu, Aug 14, 2008 at 2:45 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > On Thursday 14 August 2008, George Neill wrote: >> Hi All, >> >> I am trying to compile a multi-threaded app (using pthreads) on hpux >> 11.23 IA >> >> -- C

[CMake] hpux (cma vs. pthreads)

2008-08-13 Thread George Neill
Hi All, I am trying to compile a multi-threaded app (using pthreads) on hpux 11.23 IA -- CMAKE_SYSTEM ...HP-UX-B.11.23 -- CMAKE_SYSTEM_NAME...HP-UX -- CMAKE_SYSTEM_VERSION ...B.11.23 -- CMAKE_C_COMPILER: ...

[CMake] windows resource flags.

2008-08-07 Thread George Neill
All, I need to define a couple of symbols for the windows resource compiler (rc.exe). SET(CMAKE_RC_FLAGS "/d KEY1=VAL1 /d KEY2=VAL2") Would this be the correct way to do it? Thanks, George. ___ CMake mailing list CMake@cmake.org http://www.cmake.org

Re: [CMake] CHECK_INCLUDE_FILES

2008-07-31 Thread George Neill
Bill, On Thu, Jul 31, 2008 at 2:32 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > George Neill wrote: >> >> Bill, >> >>> I must be missing something (or there's a bug in CheckIncludeFiles.cmake) >>> >>> CHECK_INCLUDE_FILES(sys/types.h;n

Re: [CMake] CHECK_INCLUDE_FILES

2008-07-31 Thread George Neill
Bill, > I must be missing something (or there's a bug in CheckIncludeFiles.cmake) > > CHECK_INCLUDE_FILES(sys/types.h;netinet/tcp.h HAVE_NETINET_TCP_H) > SET(HAVE_NETINET_TCP_H ${HAVE_NETINET_TCP_H} CACHE INTERNAL "netinet/tcp.h") > . > . > . > -- Looking for include files netinet/tcp.h > -- Looki

Re: [CMake] CHECK_INCLUDE_FILES

2008-07-31 Thread George Neill
Bill, On Thu, Jul 31, 2008 at 10:20 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > George Neill wrote: >> >> Bill, >> >>>> I have ran into a problem on Solaris (v10/SS12) with >>>> CHECK_INCLUDE_FILES. I believe this is actually a bug in the h

Re: [CMake] CHECK_INCLUDE_FILES

2008-07-31 Thread George Neill
Bill, >> I have ran into a problem on Solaris (v10/SS12) with >> CHECK_INCLUDE_FILES. I believe this is actually a bug in the header >> file I am checking for but none-the-less it's a problem for me. I am >> using cmake 2.4.8. >> >> CHECK_INCLUDE_FILES(netinet/tcp.h HAVE_NETINET_TCP_H) >> >> her

[CMake] CHECK_INCLUDE_FILES

2008-07-31 Thread George Neill
Hi All, I have ran into a problem on Solaris (v10/SS12) with CHECK_INCLUDE_FILES. I believe this is actually a bug in the header file I am checking for but none-the-less it's a problem for me. I am using cmake 2.4.8. CHECK_INCLUDE_FILES(netinet/tcp.h HAVE_NETINET_TCP_H) here's a quick test pro

Re: [CMake] Retrieving a named argument from a list

2008-05-08 Thread George Neill
> Before that those MACROs needs to be pruned in order > to avoid duplicate function with current CMake 2.6 LIST builtin command. > Then one (you or me for example) should file something > like "feature request" for including the macros file to CMake distro. > > Then I think for each such mod

Re: [CMake] Retrieving a named argument from a list

2008-05-08 Thread George Neill
Eric, On Thu, May 8, 2008 at 4:37 AM, Eric NOULARD <[EMAIL PROTECTED]> wrote: > Just for sake of information when I need such feature > in an home-brewed MACRO I do use the > PARSE_ARGUMENTS macro defined here: > http://www.cmake.org/Wiki/CMakeMacroParseArguments > > which relies on LIST_CONT

Re: [CMake] Retrieving a named argument from a list

2008-05-07 Thread George Neill
Alexander, > > Below is what I have come up with to fetch named arg from a list. Is > > there a preferred or built-in way to do this I may have missed? > > There is no built-in way, but it would be nice to have one. > Maybe some function for LIST() ? Thanks for confirming this. That'd be ni

Re: [CMake] ADD_DEFINITIONS in RC10

2008-05-02 Thread George Neill
Brad, > You should only see the new behavior if you call > > cmake_minimum_required(VERSION 2.6) # note value is 2.6 and not 2.4 ... and of course that is what I did! > or explicitly set this policy to NEW behavior. Otherwise CMake preserves > the old behavior and warns. If you require 2.6

[CMake] ADD_DEFINITIONS in RC10

2008-05-01 Thread George Neill
Bill, Seems like RC10 handles quotes differently regarding ADD_DEFINITIONS, e.g. in 2.4 patch 6 ADD_DEFINITIONS( -DSOME_VALUE=\\"value\\" ) in 2.6 RC 10 ADD_DEFINITIONS( -DSOME_VALUE="value" ) Is this expected? Thanks, George.

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-01 Thread George Neill
Hi Bill, On Thu, May 1, 2008 at 2:48 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > I am happy to announce that CMake 2.6.0 RC10 is ready for testing. > You can find the source and binaries here: http://www.cmake.org/files/v2.6/ Would you be opposed to putting a link to the latest RC on http://ww

[CMake] Retrieving a named argument from a list

2008-04-30 Thread George Neill
Hi All, Below is what I have come up with to fetch named arg from a list. Is there a preferred or built-in way to do this I may have missed? MACRO(GET_NAMED_ARG _key) LIST(APPEND STOP_KEYWORDS DEPENDS SOURCE) SET(${_key} FALSE) SET(_stop -1) FOREACH(arg ${ARGN}) IF(NOT

Re: [CMake] CHECK_FUNCTION_EXISTS

2008-04-15 Thread George Neill
David, > > Try setting CMAKE_REQUIRED_LIBRARIES to kernel32 (or maybe kernel32.lib?) > > before checking for Sleep. > > > > SET(CMAKE_REQUIRED_LIBRARIES "kernel32") > > > > CHECK_FUNCTION_EXISTS(Sleep HAVE_SLEEP) > > > > Does that work? > > No, it sure doesn't. Just wondering if I am us

Re: [CMake] CHECK_FUNCTION_EXISTS

2008-04-12 Thread George Neill
David, > Try setting CMAKE_REQUIRED_LIBRARIES to kernel32 (or maybe kernel32.lib?) > before checking for Sleep. > > SET(CMAKE_REQUIRED_LIBRARIES "kernel32") > > CHECK_FUNCTION_EXISTS(Sleep HAVE_SLEEP) > > Does that work? No, it sure doesn't. I tried SET(CMAKE_REQUIRED_LIBRARIES "kernel32") an

[CMake] CHECK_FUNCTION_EXISTS

2008-04-12 Thread George Neill
Hi CMakers, I feel rather stupid asking this question, but here I go. I have the following simple CMakeLists.txt file (on the windows platform, default MSVC compiler install). C:\Documents and Settings\gneill\Desktop\tmp>type CMakeLists.txt PROJECT(GEORGE C) include(CheckFunctionExists) CHE

Re: [CMake] Sun GCC builds (cooltools)

2008-03-21 Thread George Neill
Bill, > Sounds like the pre-installed gcc is broken. That path should be in some > sort of system path. Thanks for looking into this. You bet. The pre-installed (gcc 3.4.3) works fine. But it looks like the SUN gcc 4.2.0 cooltools compiler has some kind of pathing issue going on with it (or I

Re: [CMake] Sun GCC builds (cooltools)

2008-03-21 Thread George Neill
Brad, This proved to be useful for me, if it is worth including ... -bash-3.00$ cvs diff CMakeLists.txt Index: CMakeLists.txt === RCS file: /cvsroot/CMake/CMake/Utilities/cmcurl/CMakeLists.txt,v retrieving revision 1.19 diff -r1.19 C

Re: [CMake] Sun GCC builds (cooltools)

2008-03-21 Thread George Neill
Brad, > I will do some more digging ... So this is why the CMake SS12 compile works, -bash-3.00$ /opt/SUNWspro/bin/cc -lcrypto -lssl test.c ld: fatal: library -lcrypto: not found ld: fatal: library -lssl: not found ld: fatal: File processing errors. No output written to a.out and this is why t

Re: [CMake] Sun GCC builds (cooltools)

2008-03-21 Thread George Neill
Brad, More info compiling with SUN GCC 4.2 (cooltools) on sun sparc. I think I have narrowed it to HAVE_POSIX_STRERROR_R not being defined in Utilities/cmcurl. It seems strange since it compiles and produces the expected results when I do it by hand. -bash-3.00$ env | grep CC CC=/opt/gcc/bin/gc

Re: [CMake] Sun GCC builds (cooltools)

2008-03-20 Thread George Neill
Brad, > The bootstrap is not supposed to define that macro. During a normal > build it is defined in "cmConfigure.h" but the config header written by > the bootstrap (in Bootstrap.cmk/cmConfigure.h) does not define it. Are > you sure it was a clean checkout? Could there be a stale cmConfigu

[CMake] Sun GCC builds (cooltools)

2008-03-19 Thread George Neill
Hi CMakers, I am building cmake on a Sun Enterprise 220R with 2GB of RAM running Solaris 10 08/07. I have two compilers installed on this box. 1. SunStudio 12 -bash-3.00$ /opt/SUNWspro/bin/CC -V CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25 2. The SUN modified gcc compiler v4.2.0 --

Re: [CMake] INCLUDE_DIRECTORIES and FIND_PATH

2008-03-19 Thread George Neill
Hi! > FIND_PATH(GN > NAMES "include" > PATHS "/tmp" > ) I see I am using this wrong, my apologies. Thanks, George. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] INCLUDE_DIRECTORIES and FIND_PATH

2008-03-19 Thread George Neill
Hi CMakers! I am using, cmake version 2.4-patch 6 on linux. This example using INCLUDE_DIRECTORIES doesn't appear to be inherited by project sub directories. FIND_PATH(GN NAMES "include" PATHS "/tmp" ) INCLUDE_DIRECTORIES( "${GN}/child" ) If I change it to this, INCLUDE_DIRECTORIES( "

Re: [CMake] /MACHINE:x64

2007-12-28 Thread George Neill
Hi Bill, Thanks for responding. > What version of the compiler do you have? > With vs 2005, which was the first one we supported 64 bit builds, I get > this: Windows Server 2003 SP1 Platform SDK and the Visual C++ toolkit 2003. The following link appears to be similar to issue(s) I am having ..

[CMake] /MACHINE:x64

2007-12-28 Thread George Neill
Hi CMakers! I am trying to compile on a 64 bit windows machine (AMD64). It seems CMake only outputs /MACHINE:X64 for the link flags. However, link.exe reports that flag doesn't exist. Is this a bug? I am using, cmake version 2.4-patch 7 cl.exe Microsoft (R) C/C++ Optimizing Compiler Version

[CMake] cmTryCompileExec.exe error

2007-12-27 Thread George Neill
Hi CMakers, I am trying to compile on windows in 'Release' mode. I am getting a error about a missing MSVCR71D.dll debug library (which I presume might be a bad compiler install or some crafty person making sure we don't build against debug libs). Anyhow, I can build a simple "hello world" prog

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread George Neill
Hi Alan, > Well, don't shut up. :-) ok. :) > However, if you have created targets lib1, lib2, lib3 with the > EXCLUDE_FROM_ALL attribute, in various subdirectories and want one special > make target that builds all of them, then use > > add_custom_target(libs) > add_dependencies(libs lib1, li

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread George Neill
Hi Alexander, > I think it may be not that hard, it also makes some sense, but to me this > would feel a bit like bloat. Yeah possibly ... it certainly would have saved me a few minutes! (not that it really matters, in the end I was able to make CMake do what I needed without too much hassle). I

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread George Neill
Hi Brandon, > Having a subdirectory doesn't imply you want that stuff built as part > of "make all." In fact there are explicit options to avoid this. A > typical example is you've got some source code for sample projects, > but you don't want the sample projects built by default. Test cases >

Re: [CMake] ADD_SUBDIRECTORY

2007-12-20 Thread George Neill
Hi Brandon, > Because having a subdirectory doesn't imply that you're going to do > anything there. It could just be an intermediate part of your source > tree. Perhaps the CMakeLists.txt in that subdirectory merely contains > more ADD_SUBDIRECTORY commands. In the example I provided, I tried t

[CMake] ADD_SUBDIRECTORY

2007-12-19 Thread George Neill
Hi CMakers, I have a simple example. I am curious why CMake doesn't automatically build a psuedo-target when an ADD_SUBDIRECTORY is issued? In the end, I want be able to type 'make libs'. I was able to get it to work by adding ADD_CUSTOM_TARGET(libs DEPENDS A B), but adding it seems somewhat r

Re: [CMake] CMake with Lua Experiment

2007-11-27 Thread George Neill
Brandon, On 11/28/07, Brandon Van Every <[EMAIL PROTECTED]> wrote: > > - better scoping - higher quality, outsourced documentation - outsource core language bugs > - popularity boost for 5 years - some advanced programming constructs gained I certainly can't debate those (unless CMake develop

Re: [CMake] CMake with Lua Experiment

2007-11-27 Thread George Neill
Hi CMakers! Being relatively new to CMake (3 months now), this whole LUA discussion seems very odd ... (so please accept an apology for my ignorance in advance) > An additional thought is to export global constants (variables), so we > > can basically create keywords. So instead of: > > cm_add_li

[CMake] ADD_SUBDIRECTORY() / windows path

2007-10-15 Thread George Neill
c.kitware.com/pipermail/cmake/2007-August/015641.html. It appears the ADD_SUBDIRECTORY() call is somehow getting the scrunched 8.3names; and I imagine is what causes cmake to fail. The error I am getting. "C:/Documents and Settings/George Neill/Desktop/project/test" is not a subdirectory o

[CMake] ADD_DIRECTORY

2007-10-15 Thread George Neill
c.kitware.com/pipermail/cmake/2007-August/015641.html. It appears the ADD_SUBDIRECTORY() call is somehow getting the scrunched 8.3names; and I imagine is what causes cmake to fail. The error I am getting. "C:/Documents and Settings/George Neill/Desktop/project/test" is not a subdirectory o

[CMake] VC++ 5.0 Express

2007-09-14 Thread George Neill
Hi All, I am new to cmake, thank you for the awesome product. I am using the free VC++ 5.0 Express with the Platform SDK, I am curious why cmake doesn't report this as the free VC compiler? I am using cmake version 2.4-patch 7. C:\DOCUME~1\GEORGE~1\Desktop\build>cmake -G"NMake Makefiles" ..\src