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 > > Here is what I have come up with, > > CHECK_S

[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] Strange problem...

2009-02-02 Thread Nima Talebi
Hi all, I'm having trouble understanding what the problem is here... This is the relevant part of the make process (which calls cmake in producing a debian package)... echo `pwd` /usr/src/hotwire-0.2.3 cd BUILD; cmake -DBUILD=Release -DPREFIX=STAGING -DWEBDIR=usr/share/hotwire-irbd-common/sfweb -

Re: [CMake] Fwd: equivalent cmakelist for this file

2009-02-02 Thread ankit jain
2009/2/3 Philip Lowman > On Mon, Feb 2, 2009 at 11:31 PM, ankit jain wrote: > >> >> >> -- Forwarded message -- >> From: ankit jain >> Date: 2009/2/2 >> Subject: Re: [CMake] equivalent cmakelist for this file >> To: Bill Hoffman >> >> >> >> >> 2009/2/2 Bill Hoffman >> >> an

Re: [CMake] Fwd: equivalent cmakelist for this file

2009-02-02 Thread ankit jain
2009/2/3 Philip Lowman > On Mon, Feb 2, 2009 at 11:31 PM, ankit jain wrote: > >> >> >> -- Forwarded message -- >> From: ankit jain >> Date: 2009/2/2 >> Subject: Re: [CMake] equivalent cmakelist for this file >> To: Bill Hoffman >> >> >> >> >> 2009/2/2 Bill Hoffman >> >> an

Re: [CMake] Fwd: equivalent cmakelist for this file

2009-02-02 Thread Philip Lowman
On Mon, Feb 2, 2009 at 11:31 PM, ankit jain wrote: > > > -- Forwarded message -- > From: ankit jain > Date: 2009/2/2 > Subject: Re: [CMake] equivalent cmakelist for this file > To: Bill Hoffman > > > > > 2009/2/2 Bill Hoffman > > ankit jain wrote: >> >>> The objective here to

[CMake] Fwd: equivalent cmakelist for this file

2009-02-02 Thread ankit jain
-- Forwarded message -- From: ankit jain Date: 2009/2/2 Subject: Re: [CMake] equivalent cmakelist for this file To: Bill Hoffman 2009/2/2 Bill Hoffman ankit jain wrote: > >> The objective here to include all the .desc files in the cmakelist and >> when we make it it should

Re: [CMake] How To change VS2005 Output directory

2009-02-02 Thread Philip Lowman
On Mon, Feb 2, 2009 at 7:13 PM, LaViolette, Alan < alaviole...@overwatch.textron.com> wrote: > I changed the CMAKE_CFG_INTDIR and I don't see any changes in the > project file. > > I am setting > set (CMAKE_RUNTIME_OUTPUT_DIRECTORY > ${CMAKE_SOURCE_DIR}/bin/${CMAKE_PLATFORM}) > > > The problem

Re: [CMake] CMake generates XCode project with incorrect dependency

2009-02-02 Thread Bill Hoffman
Christian Goetze (CG Linden) wrote: We have a typical case of a static library and some test programs linking against the library. For some reason, running incremental builds under XCode fails to relink the test programs if the library is rebuilt. Inspection of the generated XCode files seems t

[CMake] CMake generates XCode project with incorrect dependency

2009-02-02 Thread Christian Goetze (CG Linden)
We have a typical case of a static library and some test programs linking against the library. For some reason, running incremental builds under XCode fails to relink the test programs if the library is rebuilt. Inspection of the generated XCode files seems to indicate that the dependency is of t

Re: [CMake] How To change VS2005 Output directory

2009-02-02 Thread LaViolette, Alan
I changed the CMAKE_CFG_INTDIR and I don't see any changes in the project file. I am setting set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/${CMAKE_PLATFORM}) The problem is The VS2005 generator always appends the configuration name so I get if CMAKE_SOURCE_DIR = x:

Re: [CMake] How To change VS2005 Output directory

2009-02-02 Thread Tyler
On Mon, Feb 02, 2009 at 05:00:13PM -0500, LaViolette, Alan wrote: > From what I can see the VCLinker OutputFile is set to the value of > target.GetDirectory(configName). > (cmLocalVisualStudio7Generator::OutputBuildTool() ~ line 953) > > The cmTarget::GetDirectory() calls > cmGlobalVisualStudio7Ge

Re: [CMake] ASM support

2009-02-02 Thread Phil Smith
-- The C compiler identification is unknown -- Loaded CMakeASM_DIGNUSInformation - ASM_DIGNUS support is still experimental, please report issues CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_ASM_DIGNUS_COMPILER_ENV_VA

Re: [CMake] ASM support

2009-02-02 Thread Alexander Neundorf
On Monday 02 February 2009, Phil Smith wrote: > When you write: > > The following three should also have the "_DIGNUS": > > > > SET(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm) > > SET(CMAKE_ASM_OUTPUT_EXTENSION ".o" ) > > SET(CMAKE_ASM_COMPILE_OBJECT " -o ") > > I'm not sure where it goes -- I've tried

Re: [CMake] ASM support

2009-02-02 Thread Phil Smith
When you write: > The following three should also have the "_DIGNUS": > SET(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm) > SET(CMAKE_ASM_OUTPUT_EXTENSION ".o" ) > SET(CMAKE_ASM_COMPILE_OBJECT " -o ") I'm not sure where it goes -- I've tried a few places (after "ASM", at the end of the variable), no ch

Re: [CMake] JWASM support

2009-02-02 Thread Hendrik Sattler
Am Samstag 31 Januar 2009 14:12:24 schrieb Dmitry Bely: > I am trying to use JWASM (http://www.japheth.de/JWasm.html) with CMake > 2.6.2 to do rather unusual thing: cross-compile a C++ project with > MASM-syntax .asm files for Linux under Windows. JWASM itself emulates > MASM excellently and has no

Re: [CMake] JWASM support

2009-02-02 Thread Alexander Neundorf
On Saturday 31 January 2009, Dmitry Bely wrote: > I am trying to use JWASM (http://www.japheth.de/JWasm.html) with CMake > 2.6.2 to do rather unusual thing: cross-compile a C++ project with > MASM-syntax .asm files for Linux under Windows. Hmm, if it is able to build masm files I think it should

Re: [CMake] How To change VS2005 Output directory

2009-02-02 Thread LaViolette, Alan
>From what I can see the VCLinker OutputFile is set to the value of target.GetDirectory(configName). (cmLocalVisualStudio7Generator::OutputBuildTool() ~ line 953) The cmTarget::GetDirectory() calls cmGlobalVisualStudio7Generator::AppendDirectoryForConfig() when a config name is passed in The cmGl

Re: [CMake] Question about static library linking

2009-02-02 Thread Alexander Neundorf
On Monday 02 February 2009, Jonathan Fillion wrote: > Hi all, > > > > We're trying to setup cmake to compile our libaries over here and I have > a simple question that I can't seem to find the answer to. > > I have a dynamic library A that depends on a static library B which in > turns needs anothe

Re: [CMake] Dynamic function names

2009-02-02 Thread Alexander Neundorf
On Monday 02 February 2009, Nima Talebi wrote: > Hello, > I have defined a number of functions, like so... > > function(BUILD_HOTWIRE_SERVER) > ... > endfunction(BUILD_HOTWIRE_SERVER) > > > Now, based on what user as requested, I'd like to call selected functions > like so... > > > foreach(COMPON

Re: [CMake] Adding files other than c and cpp in cmakelists file

2009-02-02 Thread Alexander Neundorf
On Monday 02 February 2009, ankit jain wrote: > Hi all, > > Can't we include our source files other than C or Cpp in cmakelists file. > if yes then if we want to execute those files when we do make then for that > what to write in CMakelists file as we write add_library command which we > want to d

Re: [CMake] ASM support

2009-02-02 Thread Alexander Neundorf
On Thursday 29 January 2009, Phil Smith wrote: > You're too generous -- I looked yesterday :-( > > Anyway, I've followed those instructions (I think) but it's not working. > I'm using ASM_DIGNUS as the assembler name. The ASM_DIGNUS files I've added > (shown below) are all in Modules\ (the page is

Re: [CMake] Question about static library linking

2009-02-02 Thread Tyler Roscoe
On Mon, Feb 02, 2009 at 02:36:55PM -0500, Jonathan Fillion wrote: > I have a dynamic library A that depends on a static library B which in > turns needs another static library C. Now, > > in B's CMakeList.txt: > > LINK_DIRECTORIES(/path/to/c) > > TARGET_LINK_LIBRARIES(C) > > > > in A's CMake

Re: [CMake] How To change VS2005 Output directory

2009-02-02 Thread Tyler Roscoe
On Mon, Feb 02, 2009 at 02:12:53PM -0500, LaViolette, Alan wrote: > I would like to use the $(ConfigurationName) VS macro Investigate CMAKE_CFG_INTDIR. tyler ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Question about static library linking

2009-02-02 Thread Jonathan Fillion
Hi all, We're trying to setup cmake to compile our libaries over here and I have a simple question that I can't seem to find the answer to. I have a dynamic library A that depends on a static library B which in turns needs another static library C. Now, in B's CMakeList.txt: LINK_DIRECTOR

Re: [CMake] CMake Digest, Vol 58, Issue 3

2009-02-02 Thread David . Karr
From: ankit jain Subject: Re: [CMake] equivalent cmakelist for this file > The objective here to include all the .desc files in the > cmakelist and when we make it it should generate the executable > for it like if we include abc.desc then after make it should > generate a file abc which is execu

[CMake] How To change VS2005 Output directory

2009-02-02 Thread LaViolette, Alan
The VS2005 generator looks to always append the configuration name into the output directory. I have a project that I don't want this to happen. For example my output path need to look like this /Build/Debug/Plugin or /Build/Release/Plugin I would like to use the $(ConfigurationName)

Re: [CMake] How to append arbitrary linker options?

2009-02-02 Thread Brad King
Bartlett, Roscoe A wrote: > The hack: > > set(CMAKE_CXX_LINK_EXECUTABLE >"${CMAKE_CXX_LINK_EXECUTABLE} ${NASTY_FLAGS}") > > does not work because my libraries still come after these flags. Read my suggestion more carefully. I'm not setting CMAKE_EXE_LINKER_FLAGS. I'm setting the variable

Re: [CMake] equivalent cmakelist for this file

2009-02-02 Thread Bill Hoffman
ankit jain wrote: The objective here to include all the .desc files in the cmakelist and when we make it it should generate the executable for it like if we include abc.desc then after make it should generate a file abc which is executable and a script which has test cases but generated by .des

[CMake] Adding files other than c and cpp in cmakelists file

2009-02-02 Thread ankit jain
Hi all, Can't we include our source files other than C or Cpp in cmakelists file. if yes then if we want to execute those files when we do make then for that what to write in CMakelists file as we write add_library command which we want to do when make will run in some cases. AJ _

Re: [CMake] equivalent cmakelist for this file

2009-02-02 Thread Hendrik Sattler
ankit jain schrieb: > The objective here to include all the .desc files in the cmakelist and when > we make it it should generate the executable for it like if we include > abc.desc then after make it should generate a file abc which is executable > and a script which has test cases but generated b

[CMake] Dynamic function names

2009-02-02 Thread Nima Talebi
Hello, I have defined a number of functions, like so... function(BUILD_HOTWIRE_SERVER) ... endfunction(BUILD_HOTWIRE_SERVER) Now, based on what user as requested, I'd like to call selected functions like so... foreach(COMPONENT ${ONLY}) if(ENABLE_${COMPONENT}) message(BUILD_${COMPONENT

Re: [CMake] equivalent cmakelist for this file

2009-02-02 Thread ankit jain
The objective here to include all the .desc files in the cmakelist and when we make it it should generate the executable for it like if we include abc.desc then after make it should generate a file abc which is executable and a script which has test cases but generated by .desc file only. In order

Re: [CMake] equivalent cmakelist for this file

2009-02-02 Thread ankit jain
Actually my motive is to run executable that are executed through .desc file. so how to write a cmakelist file for that. AJ 2009/2/2 Hendrik Sattler > ankit jain schrieb: > > Then what to do. Is something can be done using Ctest. > > We cannot guess what's in those files. Don't think about wh

Re: [CMake] equivalent cmakelist for this file

2009-02-02 Thread Hendrik Sattler
ankit jain schrieb: > Then what to do. Is something can be done using Ctest. We cannot guess what's in those files. Don't think about what the old build system looks like but think about what you want to achieve. HS ___ CMake mailing list CMake@cmake.or

Re: [CMake] equivalent cmakelist for this file

2009-02-02 Thread ankit jain
Then what to do. Is something can be done using Ctest. ankit 2009/2/2 Hendrik Sattler > ankit jain schrieb: > > Can anybody tell me what should be the equivalent cmakelists file > should for > > this makefile. > > > > Makefile: > > > > include Make.bootstrap > > # List of descriptor files for

Re: [CMake] equivalent cmakelist for this file

2009-02-02 Thread Hendrik Sattler
ankit jain schrieb: > Can anybody tell me what should be the equivalent cmakelists file should for > this makefile. > > Makefile: > > include Make.bootstrap > # List of descriptor files for test scripts > TEST_DESCRIPTORS = a.desc b.desc c.desc d.desc > include $(MAKEMANY) > > here each .desc fi

[CMake] equivalent cmakelist for this file

2009-02-02 Thread ankit jain
hi all, Can anybody tell me what should be the equivalent cmakelists file should for this makefile. Makefile: include Make.bootstrap # List of descriptor files for test scripts TEST_DESCRIPTORS = a.desc b.desc c.desc d.desc include $(MAKEMANY) here each .desc file has script like this: For a.de