Re: [CMake] subdirectories INSTALL(FILES "subdir/foo.h" ...)

2006-06-30 Thread Brad King
Jan Woetzel wrote: Hi, I expected INSTALL(FILES "subdir/foo.h" DESTINATION include ) to install "foo.h" into include/subdir but it installs into: include Thus the subdirectory structure is lost. (1) This is a bug or am I missing something ? It works if I put the approppritae DESTINATION into

Re: [CMake] ExceptionHandling in VC8

2006-06-30 Thread Brad King
Laurentiu Nicolae wrote: Hello CMake users, I have noticed that the ExceptionHandling flag is not fully handled for VC8 projects. Namely, in VC7 this option could only be set to TRUE or FALSE. In VC8, we have the following options: Enable C++ exceptions : No - ExceptionHandling="0" Yes (/EHsc

Re: [CMake] automagically generated header hell

2006-06-30 Thread Brad King
David Somers wrote: On Friday 30 June 2006 19:07, William A. Hoffman wrote: At 12:26 PM 6/30/2006, David Somers wrote: BTW, one hiccup I still have is this: for the COMMENT, how can I get it to print out the $ character? \$ should work. That's what I would have expected too... but it doe

Re: [CMake] Regex changes between cmake 2.0.6 and 2.4.2 ??

2006-07-03 Thread Brad King
Kris Dekeyser wrote: I just ran your example with 2.4.2 and got the latter output. Then, is there any configuration setting that could influence the regex behavior ? No. Did you build CMake 2.4.2 yourself or use a pre-compiled binary? -Brad ___ CMa

Re: [CMake] FIND_PACKAGE generator mismatch?

2006-07-03 Thread Brad King
Amitha Perera wrote: In the VXL project, we use FIND_PACKAGE to allow internal code to use the public VXL code. As currently set up, this causes a call to CMAKE_IMPORT_BUILD_SETTINGS, which in turn checks that the internal project uses the same generator, compiler, and compiler flags as the exter

Re: [CMake] Regex changes between cmake 2.0.6 and 2.4.2 ??

2006-07-03 Thread Brad King
Kris Dekeyser wrote: I'm pretty sure something changed in the the interpretation of variables. I attached a simple CMakeLists.txt file that shows the difference along with a configuration file to read in. Yes, this did change, but the original behavior was not intended or documented. Note t

Re: [CMake] Per-target compiler flags?

2006-07-05 Thread Brad King
Remi Denis-Courmont wrote: Hello, I am trying to port a project to CMake, but I couldn't find anyway to specify C preprocessor defines on a per-target (or alternatively, per-source) basis. The project is compiling the same source files multiple times with different defines, resulting in diffe

Re: [CMake] canonical way to distinguish CMake builds?

2006-07-05 Thread Brad King
Brandon J. Van Every wrote: I have put ADD_DEFINITIONS(-DCMAKE_BUILD) in CMakeLists.txt and statements such as #if !defined(CMAKE_BUILD) in my .h files. Is there a canonical definition for this? I didn't see any canonical flag being passed to the C compiler, so I'm guessing there isn't one, b

Re: [CMake] question about linker flags from PKGCONFIG

2006-07-05 Thread Brad King
Andriy Rysin wrote: Hi I've got a question about PKGCONFIG usage Let's say I've got SOMELIB_CFLAGS and SOMELIB_LD_FLAGS from PKGCONFIG by this: PKGCONFIG(somelib SOMELIB_INCLUDE_DIR SOMELIB_LINK_DIR SOMELIB_LD_FLAGS SOMELIB_CFLAGS) I could use SET(CMAKE_CXX_FLAGS "${SOMELIB_CFLAGS} ${CMAKE_CXX

Re: [CMake] Bug #3218 - Automatic Visual Studio dependency generation

2006-07-05 Thread Brad King
Manuel Klimek wrote: Hi there, Here's a got a completely reworked version of my patch. For me this is a killer feature when working with Visual Studio 2005 and cmake: It automatically generates workspaces for projects in subdirectories that contain all required visual studio projects to compile

Re: [CMake] CMake and VC-80 configurations

2006-07-05 Thread Brad King
Alex Makarenko wrote: High all, I'm struggling with build configurations in VC-80. I have two specific questions: 1) Does ${OutDir} get resolved for arbitrary paths (other than to targets)? E.g. I want to specify the path to a text config file generated during the build. The cmake command and t

Re: [CMake] Fortran bug? Use statement problems

2006-07-06 Thread Brad King
Daniel Sands wrote: I'm not a Fortran programmer, but I have some code to compile into my program. It came up with false dependencies when I tried to compile it in the CMAKE framework though. The problem is traced to comment lines such as C use cross product of vectors ... Should a 'use' s

Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

2006-07-07 Thread Brad King
Alexander Neundorf wrote: Hi, it would be nice if it would be possible to have for each object file also a target which only preprocesses the file and one which preprocesses and compiles, but not assembles the file (so that you get the assembler code). Is there a way to do this with macros ?

Re: [CMake] Visual C++ 2005 Express - command line?

2006-07-07 Thread Brad King
[EMAIL PROTECTED] wrote: ok, bit of a learning curve here while changing IDE's (and learining CMake again). From the CMakeCache.txt for VTK: MAKECOMMAND:STRING=C:\PROGRA~1\MICROS~2\Common7\IDE\VCExpress.exe VTK.sln /build Release /project ALL_BUILD at DOS cmd or cygwin bash prompt the abov

Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

2006-07-07 Thread Brad King
John Ellson wrote: Brad King wrote: Alexander Neundorf wrote: Hi, it would be nice if it would be possible to have for each object file also a target which only preprocesses the file and one which preprocesses and compiles, but not assembles the file (so that you get the assembler code

Re: Convenience libraries [was Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?]

2006-07-07 Thread Brad King
John Ellson wrote: Brad King wrote: John Ellson wrote: Not sure that I'm following the converstation properly here, but can any of this be used to provide access to a set of .o for use as a "convenience library" ? No, these variables are used to specify rules for the genera

Re: [CMake] YARI (yet another RPATH idea)

2006-07-07 Thread Brad King
Alexander Neundorf wrote: it's me again, again with my favourite topic: RPATH. On the Mac there is the install name tool, and now I found a similar tool for ELF systems, chrpath. chrpath is able to: 1) remove the RPATH from a executable or library 2) change the RPATH to a RUNPATH 3) replace the

Re: Convenience libraries [was Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?]

2006-07-07 Thread Brad King
Alexander Neundorf wrote: Hi, Von: Brad King <[EMAIL PROTECTED]> John Ellson wrote: Brad King wrote: John Ellson wrote: Not sure that I'm following the converstation properly here, but can any of this be used to provide access to a set of .o for use as a "convenience libr

Re: [CMake] How to create SOURCE_GROUP for include files

2006-07-07 Thread Brad King
Steve Johns wrote: Hi. What I would like to accomplish: In the MS VC7.1 .Net IDE In the Solution Explorer, inside my project's folder, at the same level as the 'Source Files' folder, I would like to create a 2nd folder 'Include Files' that would contain/display the ".hpp" files for my projec

Re: [CMake] Re: Convenience libraries

2006-07-07 Thread Brad King
John Ellson wrote: how do I reference a symbol defined in CMakeLists.txt in another directory for a list of source files? e.g. in lib/graph/CMakeLists.txt I have: SET(graph_SRCS attribs.c agxbuf.c edge.c graph.c graphio.c lexer.c node.c parser.c refstr.c trie.c ) and I want

Re: [CMake] Building an object with spaces in path

2006-07-07 Thread Brad King
Richard Moreland wrote: I have a problem when building an object that resides in a path with spaces. I have the following source tree: /test CMakeLists.txt two words/ CMakeLists.txt main.cpp Spaces in the path to the top-level source tree and/or top-level build tree are suppor

Re: [CMake] How to create SOURCE_GROUP for include files

2006-07-07 Thread Brad King
Steve Johns wrote: ProjDir src incl lib into which directory's CMakelists.txt file should I put the SOURCE_FILES( "Include Files" FILES x.hpp y.hpp ) command, and could this: ADD_LIBRARY( MyLibProj x.cpp y.cpp x.hpp y.hpp ) The source and header files will not magically be

Re: [CMake] Add a compiler switch to a a specific configuration

2006-07-11 Thread Brad King
Sagnes, Frederic wrote: Hello, I'm using the STLport library on several targets on my project, and need to define the _STLP_DEBUG flag on the debug configuration of each target. I looked at : SET_TARGET_PROPERTIES ( PROPERTIES COMPILE_FLAGS -D_STLP_DEBUG ) ... but it doesn't seem to be able t

Re: [CMake] redirecting standard input in a test

2006-07-11 Thread Brad King
Alcino Dall'Igna Jr wrote: Hi How do I wrote an ADD_TEST command so a program reading standard input could be redirected to a file? I try: ADD_TEST(t build/Debug/tcmake < data) as it should be in linux, but it doesn't work. The program still executes fine but does not understand that the inpu

Re: AW: [CMake] Cross platform Multi-threading switches

2006-07-11 Thread Brad King
Sagnes, Frederic wrote: I thought CMake would have built-in support for multithreaded projects, as they are quite common. I'll set multi-threading switches for each compiler, but would it be a good idea to have a SET_TARGET_PROPERTIES extension that automatically adds multi-threaded attribute

Re: [CMake] CMake and VC-80 configurations

2006-07-11 Thread Brad King
Alex Makarenko wrote: Using \${CTEST_CONFIGURATION_TYPE} works. Is there some official document where I could look up these variables in the future? There is some documentation in the CMake book. There is also a user-maintained list here: http://www.cmake.org/Wiki/CMake_Useful_Variables We

Re: [CMake] INSTALL bug

2006-07-11 Thread Brad King
Christian Verbeek wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My directory structure is something like this root/ |-proj1/ | |-share | |-proj2/ |-share My top level CMakeLists.txt is in proj1 using proj2 with SUBDIRS( proj2 ) to compil

Re: [CMake] FindPythonInterp vs FindPython

2006-07-11 Thread Brad King
Orion Poplawski wrote: Why is FindPythonInterp called that rather than FindPython? Would be more in line with others (FindPerl, FindRuby), etc. This is historical. No one has contributed a real FindPython that uses disutils: http://www.cmake.org/Bug/bug.php?op=show&bugid=2257 -Brad __

Re: [CMake] NMake X64 VS 8.0

2006-07-11 Thread Brad King
Jorge Rodriguez wrote: I am having some problems building a 64 bit version of my application using the NMake generator on 64 bit Windows with Visual Studio 8.0. I am using the Microsoft Platform SDK command prompts that can be opened through the start menu. I can use the "Visual Studio 8 2005"

Re: [CMake] NMake X64 VS 8.0

2006-07-11 Thread Brad King
Jorge Rodriguez wrote: Brad King wrote: Please run "set >log" from the prompt and post the output. Also what is the name of the command window (in the title bar)? My pleasure: For "Command Prompt": [snip] For "Microsoft Platform SDK XP X64-bit IE 6.0 DEBUG Bui

Re: [CMake] NMake X64 VS 8.0

2006-07-11 Thread Brad King
Jorge Rodriguez wrote: Brad King wrote: Thanks. Did your VS come with a "Visual Studio 2005 x64 Win64 Command Prompt" No. Maybe I didn't install 64 bit building? This may be the case. Also, is this VS 2005 Professional or the VCExpress version? ? What installed

Re: [CMake] Selecting runtime library on Visual Studio projects

2006-07-13 Thread Brad King
Sagnes, Frederic wrote: > Hello, > > I am building a project for Windows and Unix that relies on static multi > threaded runtime library on Windows (static STLport needs it). I'm using > Visual Studio .Net 2003 7.1 > > How can I switch the default libraries (/MD and MDd switches) to the static

Re: [CMake] FindBoost.cmake

2006-07-13 Thread Brad King
Jan Woetzel wrote: > Hi, > has anybody a geneal purpose FindBoost.cmake? > > I started with the one from Andrew Maclean, see > http://public.kitware.com/pipermail/cmake/2005-October/007324.html There is a bug entry where Andrew and I are developing one. It will be added to CMake soon. http://ww

Re: [CMake] VCProj Files: Precompiled headers

2006-07-13 Thread Brad King
Peter Kahn wrote: > I noticed that there is no support for the xml generation for this and a > bunch of other options in the VS.NET 2003 vcproj > files. If all the xml settings correspond to command line switches, > then I can determine the switches and set them in the CMAKE_CXX_F

Re: [CMake] What is the preferred method of handling inter-library dependencies?

2006-07-13 Thread Brad King
William A. Hoffman wrote: > At 04:41 PM 7/13/2006, Alan W. Irwin wrote: >> How do I get access to the actual link flags used for the link command >> generated by cmake (which presumably includes all the appropriate -L and -l >> flags to access lib[xyz] and libexternal[12] as well as platform-depend

Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

2006-07-14 Thread Brad King
Alexander Neundorf wrote: > Original-Nachricht > Von: Brad King <[EMAIL PROTECTED]> > >> Alexander Neundorf wrote: >>> Hi, >>> >>> it would be nice if it would be possible to have for each object file >> also a

Re: [CMake] How to contribute FindXXX cmake module?

2006-07-14 Thread Brad King
Erk wrote: > Hi all, > > We are currently switching from Autotools to cmake > for our project: > > I wonder if you (CMake developpers/Maintainer) would > be interested in updated or new > > FindXXX cmake modules, that could be putted back > in new cmake release? > > Updated would be the case wh

Re: [CMake] Is there a @configure_inout@ -like thing?

2006-07-17 Thread Brad King
Erk wrote: > I'm switching from autotools to cmake. > I did found everything I want but the > @configure_input@ thing. > > For emulating my custom configure-generated file > I use the CMake CONFIGURE_FILE which is > just fine. > > Nevertheless I found interesting the predefined > @configure_inpu

Re: [CMake] Am I stupid or what?

2006-07-17 Thread Brad King
Louis Kruger wrote: > Hi, > > I tried to build CMake 2.0.6 - 2.4.2 without success. ( I need it for > VTK which I need for ProcessView.) > > 1. It seem to fail on creating directories, > 2. Seem to fail on copying of a file & > 3. Seem to fail on setting permmissions. > > I also wished that

Re: [CMake] Building CMake on Windows

2006-07-17 Thread Brad King
Ryan Connelly wrote: > I have a previous version of CMake installed on my system (Cmake 2.2). > Currently, I am trying to build 2.4.2 from source using the existing > cmake installation. After running the following command, cmake > BUILD_FOR_VS2005:BOOL=ON , the cmake process seems to hang (or take

Re: [CMake] Selecting runtime library on Visual Studio projects

2006-07-18 Thread Brad King
Sylvain Benner wrote: > I think you can't override a flag in the current version of CMake > (release or CVS) because the loop that parses the flag string do not > provide this. > I changed this function in order to override easily the flags in the low > level configuration files. > > I attached th

Re: [CMake] install an empty directory

2006-07-19 Thread Brad King
Brandon J. Van Every wrote: > David Cole wrote: >> How about: >> INSTALL(CODE "MAKE_DIRECTORY(\"lib/chicken/1\")") >> > > Almost! Needs a ${CMAKE_INSTALL_PREFIX} qualifier, then it works. > > # Destination for eggs. No eggs to install though. > INSTALL(CODE " > MESSAGE(STATUS \"Installing ${CM

Re: [CMake] color makefile ?

2006-07-19 Thread Brad King
Jan Woetzel wrote: > > Hi, > I am getting color output from make although I am setting > CMAKE_COLOR_MAKEFILE OFF > > I don't want color output because my XEmacs compilation window displays > the raw control characters and "click+jump" on errors does not work. > > (1) Any idea what's wrong ? >

Re: [CMake] Cmake and external build GUI

2006-07-19 Thread Brad King
Francesco Montorsi wrote: > Hi all, > I'm involved in a project (about a package manager) which needs to > be able to build source packages which are using a cmake-based build > system. > > Since I'm quite new to cmake, I'm asking you some help about the > following question: > > is it possib

Re: [CMake] Re: CMake script return a value

2006-07-19 Thread Brad King
Brandon J. Van Every wrote: > Brandon J. Van Every wrote: >> Can a CMake script invoked with >> >> EXECUTE_PROCESS( >> COMMAND ${CMAKE_COMMAND} -P myscript.cmake >> RESULT_VARIABLE myresult >> ) >> >> return a value? I don't really want to use stdout. I need that for >> status messages. I coul

Re: [CMake] What is the preferred method of handling inter-library dependencies?

2006-07-19 Thread Brad King
Alan W. Irwin wrote: > I believe you need more information than -L and -l options; you also > need to > know the special link options that are required (for rpath, shared versus > static, bundle or whatever) on the particular platform that is being used > for the build. > > Bill mentioned above th

Re: [CMake] color makefile ?

2006-07-20 Thread Brad King
Jan Woetzel wrote: > Jan Woetzel wrote: > >> (1) I think XEmacs is using an xterm but doing his own extar coloring >> to mark e.g. errors in red. Is that the problem? > I think the problem should be fixed in CMake to be even more > "conservative" with coloring, e.g. with a runtime check on env. va

Re: [CMake] ADD_CUSTOM_COMMAND doesn't work as expected

2006-07-20 Thread Brad King
Christian Ehrlicher wrote: >>> Hi, >>> >>> I'm creating some files with ADD_CUSTOM_COMMAND. Those files are not >>> compileable but later needed for install. >>> They're created fine when I use msvc generator but they aren't created >>> with mingw or on linux. >>> >>> ADD_CUSTOM_COMMAND( >>> OUTP

Re: [CMake] Building CMake on Digtal Unix

2006-07-20 Thread Brad King
[EMAIL PROTECTED] wrote: > It appears that Digital Unix's libc doesn't have snprintf/vsnprintf, > which are used in quite a few places - mostly in source under the > Utilities and CTest directories. I think this is the first time anyone has tried building CMake on Digital Unix. Officially support

Re: [CMake] ADD_CUSTOM_COMMAND doesn't work as expected

2006-07-20 Thread Brad King
Christian Ehrlicher wrote: > Von: Brad King <[EMAIL PROTECTED]> >> Christian Ehrlicher wrote: > >>>> What kind of files are these ? >>>> Ideally you should add them to the list of sources for the target. If >> they >>>> don't have

Re: [CMake] -E echo doen't handle apostrophes

2006-07-21 Thread Brad King
Brandon J. Van Every wrote: > Using CMake 2.4.2. Here's my mighty CMakeLists.txt: > > ADD_CUSTOM_TARGET(test > COMMAND ${CMAKE_COMMAND} -E echo "It's difficult to handle apostrophes." > ) > > I used CCMake under Cygwin to generate the Makefile. It dies thus: > > Brandon J. Van [EMAIL PROTECTE

Re: [CMake] cmake doesnt use /usr/bin/ar with c++ projects

2006-07-21 Thread Brad King
Filipe Sousa wrote: > Philipp Meinen wrote: >> Hello >> >> I recently used cmake for a project. >> So I added a line like this to my CMakeLists.txt: >> PROJECT(ProjectName CXX) >> >> Later on, when i tested the build-environment >> i saw error lines like this: >> cd /some/directory && cr libFOO.a

Re: [CMake] EXECUTE_PROCESS too good at running programs

2006-07-21 Thread Brad King
Brandon J. Van Every wrote: > I explained the situation pretty clearly, I thought. > E:\msys\1.0\bin\makefile does *NOT* run under a Windows command prompt. > It's not supposed to. As I said before, there's a comment at the top of > the binary that says it's not supposed to. Just to reiterate a

Re: [CMake] EXECUTE_PROCESS too good at running programs

2006-07-21 Thread Brad King
Brandon J. Van Every wrote: > Brad King wrote: >> Brandon J. Van Every wrote: >> >>> I explained the situation pretty clearly, I thought. >>> E:\msys\1.0\bin\makefile does *NOT* run under a Windows command prompt. >>> It's not supposed to. As

Re: [CMake] EXECUTE_PROCESS too good at running programs

2006-07-22 Thread Brad King
Brandon J. Van Every wrote: Ok, the CMake 2.4.2 documentation for the projectName version of TRY_COMPILE is only 3 short sentences. IIUYC, you are saying I'm going to have to write a CMakeLists.txt wrapper, and a subdirectory, for each and every tool like "makeinfo," if I want to prove that th

Re: [CMake] RPATH questions

2006-07-24 Thread Brad King
Alan W. Irwin wrote: > I build modules with cmake which depend on external libraries which may be > installed in non-standard locations. The modules also depend on cmake > targets. These modules are checked at build time with a small application > that dynamically loads them. These modules are al

Re: [CMake] Testing shared library

2006-07-24 Thread Brad King
Flávio P. Duarte wrote: > Hi, > I am trying to test a shared library using cmake. In my top level > directory, I have the source directory (src), which contains the source > files to build the library, and a test directory (test), which contains > the source files to build the binaries that will

Re: [CMake] Problems I have

2006-07-24 Thread Brad King
Louis Kruger wrote: > One of the persons indicated that more info is required ito the problems > that I have. I am busy compiling/capturing problems, but the results are > kind of big. How should I handle that in terms of posting? Just cut-and-paste the portion of your log at which the first erro

Re: [CMake] RPATH questions

2006-07-24 Thread Brad King
Alan W. Irwin wrote: > On 2006-07-24 11:14-0400 Brad King wrote: >> Summary: Just set INSTALL_RPATH on the module target to be the rpath >> needed in the install tree. Then things will just work. > > I followed that advice for INSTALL_RPATH with libplplotd, and it worke

Re: [CMake] Fortran question

2006-07-24 Thread Brad King
Karl Merkley wrote: > I have a simple Fortran project that I am testing with cmake. > > PROJECT(multi_patch Fortran) > > SET( SRCS >aAdjKeep.f >Main_mp.f > ) > > ADD_EXECUTABLE(multi_patch ${SRCS}) > > However, the first file is a Fortran 95 module and when I try to build I get > the

Re: [CMake] CMake + SWIG

2006-07-25 Thread Brad King
Daniel Tihelka wrote: > Hallo everybody, > > may I have two more simple questions about CMake and SWIG module? > > The first is connected to the setting of SWIG parameters - when I create > wrapper for Java, I need to set -package to SWIG. > > It is impossible to set is as: > > SET_SOUR

Re: [CMake] svn info from cmake script?

2006-07-25 Thread Brad King
Abe Stephens wrote: > How can I have a CMake script run if a certain non-source file has > changed since the last project build? > > I have a script which extracts some revision information from "svn info" > and places it in a source file via CONFIGURE_FILE. I'd like this script > to be executed d

Re: [CMake] Cascading dependencies.

2006-07-25 Thread Brad King
Giulio Eulisse wrote: > Ciao, > I'm trying to use cmake to build a project with many libraries, with > lots of dependencies. For this reason I would like to do something that > allows the following. > Given 3 libs A B C each one with its own dir and with > > A depends on B > B depends on C > > I

Re: [CMake] CTest and devenv command line issues

2006-07-25 Thread Brad King
Anton Deguet wrote: > Hello, > > I am trying to setup a couple of nightly builds on a single Windows box. > Since the build requires DLLs (to test our __declspec and Python > wrappers), I have been trying to use the MSVC devenv command line > with /useenv to set the DLL and Python search paths per

Re: [CMake] EXECUTE_PROCESS or ADD_CUSTOM_COMMAND?

2006-07-25 Thread Brad King
[EMAIL PROTECTED] wrote: > I need to compile a code generator, run the code generator, then compile the > code that the code generator produces. Do I need to complie the generator, > then use the EXECUTE_PROCESS command to run it, then have the generated code > compiled, or should I use the ADD_CU

Re: [CMake] target issue

2006-07-26 Thread Brad King
Flávio P. Duarte wrote: > Hi, > I am developing a project where I have a subdirectory with a bunch of > programs. Those programs are being created with ADD_EXECUTABLE command. > The main CMakeLists.txt include this dir using SUBDIRS command, which > makes all programs in this directory. Since

Re: [CMake] Compilation sequence

2006-07-26 Thread Brad King
Flávio P. Duarte wrote: > my project is an application with 4 libs. The application is located in > the root directory and each lib corresponds to one subdir in the root > dir. Since I am using Qt, I have a bunch of header files that are > generated at compile time and, to make things worst, one l

Re: [CMake] What combinations must be set for *_LINKER_FLAGS?

2006-07-27 Thread Brad King
Alan W. Irwin wrote: > One of our PLplot developers with access to Mac OS X ran into the following > error message for the shared libraries for that platform: > > ld: common symbols not allowed with MH_DYLIB output format with the - > multi_module option > > I have no idea what constraints there

Re: [CMake] free VS8 nmake config err

2006-07-28 Thread Brad King
Dean Inglis wrote: > Hi, > > I'm trying to run CMake 2.4.2 from > a command prompt to get an "NMake Makefiles" build config > (current cvs VTK) using the free MS VS8 compiler. Cmake > keeps coughing up a > CMake error: your RC compiler: "CMAKE_RC_COMPILER_FULPATH-NOTFOUND" > etc. etc. > If I ed

Re: [CMake] Cannot determine link language for target

2006-07-28 Thread Brad King
Marc-André Laverdière wrote: > Hello CMakers, > > I'm really a n00b... > > So, I am building each subdirectory into a static library and I want to > put all those libraries into a nice big dynamic library. The big dynamic > library is the objective here. > > I'm doing it as such: > ADD_LIBRARY(X

Re: [CMake] SONAME issue solved for Fortran shared libraries for cmake-2.4.2

2006-07-28 Thread Brad King
Alan W. Irwin wrote: > This patch needs to be applied to cmake-2.4.2 in order for Fortran shared > libraries (with SOVERSION and VERSION specified) to build and install > properly > on Linux. > > --- Modules/Platform/Linux.cmake_original 2006-07-04 > 18:16:42.0 -0700 > +++ Modules/Platfo

Re: [CMake] cmake cross-compile (arm) -> linker error: undefined reference to `__CTOR_LIST__'

2006-07-31 Thread Brad King
Henty Waker wrote: > Hi there > > I have some C code that I cross compiled for a small mobile point-of- > sale device running uClinux on an arm processor. > > I currently use plain Makefiles to build a number of static libs that > are linked to a single exe. The Makefiles work fine, but they're m

Re: [CMake] Cmake and pkg-config and linking

2006-07-31 Thread Brad King
Tim Teulings wrote: > On the other hand PKGCONFIG already has options to directly return > apropiate values for these two variables, so why are they not used in > the PKGCONFIG macro? I would expect that the result of the PKGCONFIG > macro is already optimal prepared for easy call of CMake macros.

Re: [CMake] strange feature(?) of library cmake generator and build types question

2006-07-31 Thread Brad King
speedy wrote: > VC++ 6 generator - [snip] > // add libraries to executables and dlls (but never include > // a library in a library, bad recursion) > // NEVER LINK STATIC LIBRARIES TO OTHER STATIC LIBRARIES > if ((target.GetType() != cmTarget::SHARED_LIBRARY > && target.G

Re: [CMake] OpenMP detection/support

2006-07-31 Thread Brad King
Crni Gorac wrote: > Everything in my project, let's call it "foo", in pure ANSI C, except > that I'm using flex and bison for parsing input, then I need getopt() > function for processing program command line options and finally, I'm > using MPI library. Source code files are distributed between f

Re: [CMake] Is there a way to group tests without polluting the cache?

2006-07-31 Thread Brad King
Alan W. Irwin wrote: > I am in the process of emulating the autotools STDC_HEADERS macro which > does > the following: > > # Specifically, this macro checks for stdlib.h', stdarg.h', > # string.h', and float.h'; if the system has those, it probably > # has the rest of the ANSI C header files. Thi

Re: [CMake] Cygwin ccmake 2.4.2 CMAKE_BUILD_TYPE empty

2006-08-01 Thread Brad King
Brandon J. Van Every wrote: > William A. Hoffman wrote: >> The CMAKE_BUILD_TYPE is by default empty on all UNIX/posix platforms. >> Sort of goes back to when there was no build type for unix. I suppose >> the chicken project could force it to not be empty. if empty, then do >> a cache force to w

Re: [CMake] CMAKE_Java_LINK_EXECUTABLE

2006-08-01 Thread Brad King
Richard Fuchs wrote: > I'm getting this error > > CMake Error: Error required internal CMake variable not set, cmake may > be not be built correctly. > Missing variable is: > CMAKE_Java_LINK_EXECUTABLE > > where/how does this variable get set? What is your CMakeLists.txt file code that causes th

Re: [CMake] CMAKE_Java_LINK_EXECUTABLE

2006-08-01 Thread Brad King
Richard Fuchs wrote: > After hunting through CMakeJavaInformation.cmake, it doesn't seem to > have a CMAKE_Java_LINK_EXECUTABLE target/property (or whatever the > correct name for it is). Does this mean that you can't call > ADD_EXECUTABLE with java files and I need to use ADD_LIBRARY or > somethi

Re: [CMake] How to find object file locations

2006-08-02 Thread Brad King
Brian Macy wrote: > I have a need to determine what directory object files are placed in > when built using CMake. In 2.0, I just picked them up in the same > directory as the source. In 2.4, they are placed in a completely new > location (/CMakeFiles/.dir/). Is there an CMake > variable I can c

Re: [CMake] CMAKE_Java_LINK_EXECUTABLE

2006-08-02 Thread Brad King
Richard Fuchs wrote: > So why when I have a simple CMakeLists.txt file like below am I getting > this error? Why is it trying to put the .class files in some funky > directory instead of just where the .java files are? Is there a way to > set the OBJECT_DIR that's in the CMakeJavaInformation.cmak

Re: [CMake] Developing an externally usable API for CMake

2006-08-02 Thread Brad King
Matt Rogers wrote: > As suggested, I've copied most of CMake's code into the KDevelop 4 codebase > for use in the cmake integration. However, I'd really love to have an > external library of some sort that I can link against rather than having to > keep up with CMake's code. This leads to a few

Re: [CMake] Visual C++ 2005 Express - command line?

2006-08-02 Thread Brad King
Dean Inglis wrote: > I ran the VS Express command prompt from the start > menu folder and checked my env vars which > appear to have been set by the bat script > that runs, so all vcvars appear to be correcly > set. Running cmake (2.4.2 windows exe install) > from the command prompt still gives a

Re: [CMake] Setting Working Directory for Debugging in MS VC++ via CMake

2006-08-02 Thread Brad King
Steve Johns wrote: > Recently, in an MS VC++ 7.1 (.NET 2003) build prepared using CMake, I've > had a problem with the application finding a config file that it needs > to read at startup. Even though I placed the file in the app's startup > dir (i.e. 'blahblah/Debug', when debugging ) the app was

Re: [CMake] Setting Working Directory for Debugging in MS VC++ via CMake

2006-08-02 Thread Brad King
Jorge Rodriguez wrote: > Brad King wrote: >> This property is not actually stored in the project files, so CMake >> cannot set the value. It is stored in some file inside the %APPDATA% >> directory for Visual Studio. >> > > Actually I believe it's stor

Re: [CMake] CMAKE_Java_LINK_EXECUTABLE

2006-08-02 Thread Brad King
Richard Fuchs wrote: > Spoke to soon, it seems to be a problem with where javac is invoked. > With the current makefiles that are created, the javac -d option has a > relative path from where the source files are located, but javac is > being invoked from the root project dir. I was able to modif

Re: [CMake] Problem with custom build rule / vcproj & cmake 2.4.3

2006-08-03 Thread Brad King
Jan Woetzel wrote: Christian Ehrlicher wrote: SET(myproject_SRCS myproject.cpp myproject.jisp ) ADD_LIBRARY(myproject SHARED ${_myproject}) myproject.jisp.rule is created and executed correct, but myproject.jisp doesn't have 'Custom build rule' but 'C/C++ Compilertool' and bec

Re: [CMake] Problem with custom build rule / vcproj & cmake 2.4.3

2006-08-03 Thread Brad King
William A. Hoffman wrote: At 02:21 AM 8/3/2006, Jan Woetzel wrote: Christian Ehrlicher wrote: SET(myproject_SRCS myproject.cpp myproject.jisp ) ADD_LIBRARY(myproject SHARED ${_myproject}) myproject.jisp.rule is created and executed correct, but myproject.jisp doesn't have 'Cust

Re: [CMake] CHECK_FUNCTION_EXISTS() issue

2006-08-03 Thread Brad King
Crni Gorac wrote: Back to my OpenMP based project, I was able to build following cmake test regarding is given compiler supporting OpenMP or not. Basic idea is like in corresponding macro from autoconf macros archive: try to check is one of OpenMP functions (omp_set_num_threads() here) availabl

Re: [CMake] Cygwin & MinGW static and dynamic libs won't coexist

2006-08-03 Thread Brad King
Brandon J. Van Every wrote: Cygwin expected nomenclature is: cygwhatever-xxx.dll - dynamic link lib where -xxx is a version number libwhatever.dll.a - import lib libwhatever.a - static lib MinGW expected nomenclature is: libwhatever.dll - dynamic link lib libwhatever.dll.a - import lib libwha

Re: [CMake] CMAKE_Java_LINK_EXECUTABLE

2006-08-03 Thread Brad King
Richard Fuchs wrote: Brad King wrote: Richard Fuchs wrote: Spoke to soon, it seems to be a problem with where javac is invoked. With the current makefiles that are created, the javac -d option has a relative path from where the source files are located, but javac is being invoked from

Re: [CMake] bug reports too easy to duplicate

2006-08-07 Thread Brad King
Alan W. Irwin wrote: > In your bug report form I suggest the actions of the icon beside the file > attach area need review. I thought it would simply confirm the file > existed > or help you to find the file. Instead clicking the icon gives you an > upload > dialogue. I assumed that would go nowh

Re: [CMake] C# news?

2006-08-07 Thread Brad King
Jan Woetzel wrote: > is there any development (planned) on C# (Csharp) support for CMake ? Currently there are no plans to develop support ourselves to my knowledge. If someone volunteers to add it we will accept the contribution. If you want to do this we can get you started. -Brad ___

Re: [CMake] End around for java?

2006-08-07 Thread Brad King
Richard Fuchs wrote: > Could I just use EXECUTE_PROCESS to call make (with a hand created > Makefile) or even the java compiler itself to get around the problems > I'm having with cmake and java not liking each other very much? You can use ADD_CUSTOM_COMMAND and ADD_CUSTOM_TARGET to do whatever yo

Re: [CMake] libraries

2006-08-08 Thread Brad King
[EMAIL PROTECTED] wrote: > FIND_LIBRARY( MY_LIB NAMES my MY PATHS c:\\pkg\\c\\cmake\\my\\o > c:/pkg/c/cmake/my/o ) You don't need the backslash version. CMake always uses forward slashes in its own scripts. > #link in the support libray > TARGET_LINK_LIBRARIES( which my ) You have to use the re

Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

2006-08-08 Thread Brad King
Alexander Neundorf wrote: > Attached is a first try of a patch against 2.4 branch. > It introduces two new variables CMAKE_CREATE_PREPROCESS_RULES and > CMAKE_CREATE_ASSEMBLE_RULES. I think especially the name > CMAKE_CREATE_ASSEMBLE_RULES is not good (since actually everything except > assembli

Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

2006-08-09 Thread Brad King
Alexander Neundorf wrote: > Von: Brad King <[EMAIL PROTECTED]> > >> Alexander Neundorf wrote: >>> Attached is a first try of a patch against 2.4 branch. >>> It introduces two new variables CMAKE_CREATE_PREPROCESS_RULES and >> CMAKE_CREATE_A

Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

2006-08-09 Thread Brad King
Brad King wrote: > Alexander Neundorf wrote: >> Von: Brad King <[EMAIL PROTECTED]> >> >>> Alexander Neundorf wrote: >>>> Attached is a first try of a patch against 2.4 branch. >>>> It introduces two new variables CMAKE_CREATE_PREPROCESS_RULES a

Re: [CMake] ccmake and fortran

2006-08-15 Thread Brad King
Arjen Markus wrote: >> OK. That statement about the limited nature of the parsing is >> reassuring so >> would somebody please commit the solution, i.e., >> >> ^[cC*dD].*\n { return EOSTMT; } >> >> to: >> >> ^[cC*dD].*\n { return EOSTMT; } >> >> that Bryan Walsh has already worked out? > > Please

Re: [CMake] problem with ADD_DEFINITION

2006-08-15 Thread Brad King
Nuno Lopes wrote: > Thanks for your help. But in theory the cflags can include anything they > like, (e.g. "-DHAVE_XPTO -I/tmp/xpto -Wl,-O"), so probably > INCLUDE_DIRECTORIES isn't the right one to choose, am I right? Full-fledged integration of CMake and pkgconfig has not been implemented. The

<    6   7   8   9   10   11   12   13   14   >