Re: [CMake] How to build and link Externa Project with exported target

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 14:37 , Luigi Calori wrote: > Hi Michael and Nicola, > I'm in a similar situation as I' m trying to build up a cmake based > dependency builder for OpenSceneGraph based projects: > So I' m really interested in any "best practice" adv

Re: [CMake] INCLUDE_DIRECTORIES empty?

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 14:45 , David Doria wrote: >> This is a read-only directory property: >> >> http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_dir:INCLUDE_DIRECTORIES >> >> Michael > > That's ok, all I want to do is read it. That's why I thought it would just be: > > MESSAGE("INCLU

Re: [CMake] INCLUDE_DIRECTORIES empty?

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 14:34 , David Doria wrote: >> The syntax is: >> >> INCLUDE_DIRECTORIES(../../include) >> >> This will append to the already existing include directories. >> >> Michael >> > > Ok. And then how do I see the list of everything that has been added > to INCLUDE_DIRECTORIES? >

Re: [CMake] INCLUDE_DIRECTORIES empty?

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 13:58 , David Doria wrote: > If I do something like this: > > INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} ../../include) > > I'd expect ../../include to be appended to the current INCLUDE_DIRECTORIES. > > So then when I do this: > MESSAGE("INCLUDE_DIRECTORIES: ${INCLUDE_DI

Re: [CMake] How to build and link Externa Project with exported target

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 13:17 , Nicola Brisotto wrote: > Hi! > I'm building a project that require a 3rd party library libqxmpp. Both > project uses cmake > I want to build libqxmpp with ExternalProject_add, this the code I use: > > ExternalProject_add( > libqxmpp > #no download, i'm

Re: [CMake] static library from several subdirectories

2010-03-17 Thread Michael Wild
On 17. Mar, 2010, at 13:01 , Verweij, Arjen wrote: > Hi, > >> From: Michael Wild [mailto:them...@gmail.com] > >> I'd recommend to change the add_sources function to do all the >> preprocessing and then only add the products (.f, .f90, .c etc.) files >> to

Re: [CMake] static library from several subdirectories

2010-03-16 Thread Michael Wild
On 16. Mar, 2010, at 22:30 , Verweij, Arjen wrote: > Hi Markus, > > I have tested Michael's suggestion. It works wonders for combining source > files into a single lib, regardless of the directory levels. For instance, I > tested with: > > CMakeLists.txt > a/CMakeLists.txt > a/liba.c > b/CMak

Re: [CMake] static library from several subdirectories

2010-03-16 Thread Michael Wild
On 16. Mar, 2010, at 17:42 , Markus Raab wrote: > Verweij, Arjen wrote: > >> I'm looking for a cmake-way to create a static library from several >> subdirectories. > > I have exactly the same problem, please share if you get a good solution. > > What about collecting all files in a cache varia

Re: [CMake] static library from several subdirectories

2010-03-16 Thread Michael Wild
On 16. Mar, 2010, at 9:54 , Verweij, Arjen wrote: > Hi, > >>> Hopefully I'm misunderstanding you, since otherwise the list would >> contain >>> close to 4000 files. >> >> Well, I don't see a real problem with this. If this makes your files too >> long, >> just separate the setting of these sour

Re: [CMake] [PATCH] Support multiple arguments in CC,CXX,FC values

2010-03-15 Thread Michael Wild
On 15. Mar, 2010, at 14:59 , Brad King wrote: > Michael Wild wrote: >> On 15. Mar, 2010, at 14:37 , Brad King wrote: >>> using the "PROGRAM/PROGRAM_ARGS" option of get_filename_component() >>> which already accounts for spaces in the path. It uses an algo

Re: [CMake] [PATCH] Support multiple arguments in CC,CXX,FC values

2010-03-15 Thread Michael Wild
On 15. Mar, 2010, at 14:37 , Brad King wrote: > Michael Wild wrote: >> Won't that fail for compiler-installations with spaces in the path >> (admittedly a bad idea, but on Windows probably not that unlikely)? > > By the time the new code is reached we've already

Re: [CMake] [PATCH] Support multiple arguments in CC,CXX,FC values

2010-03-15 Thread Michael Wild
On 15. Mar, 2010, at 14:07 , Brad King wrote: > Anyway, this patch should fix it. Please test. > > Thanks, > -Brad > > > Modules/CMakeDetermineCompilerId.cmake |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/Modules/CMakeDetermineCompilerId.cmake > b/Modules/CMak

Re: [CMake] Problem with CHECK_FUNCTION_EXISTS and strcasecmp

2010-03-14 Thread Michael Wild
> On 03/13/2010 01:03 PM, Mateusz Loskot wrote: > > Michael Surette wrote: > >> I am updating the CMake build files for a cross-platform project. One > >> of the tests is for strcasecmp for which I use CHECK_FUNCTION_EXISTS. If > >> it's not found the code generates its own function by that nam

Re: [CMake] Static Modules

2010-03-12 Thread Michael Wild
On 12. Mar, 2010, at 11:42 , Markus Raab wrote: > Hello! > > Michael Wild wrote: >> IMHO it would be simpler and safer to have a function which collects all >> the file names, adds them to a global property and then allows you to >> compile a static library from tha

Re: [CMake] How to export headers

2010-03-11 Thread Michael Wild
On 12. Mar, 2010, at 24:25 , Michael Surette wrote: > I am installing a library with the following code > > export(TARGETS mylib > APPEND FILE mylibConfig.cmake > ) > install(TARGETS mylib > EXPORT mylib-install > DESTINATION ${PREFIX_LIB} > ) > > where mylib has been previously been adde

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Michael Wild
On 11. Mar, 2010, at 9:41 , mika.raj...@patria.fi wrote: > > > cmake-boun...@cmake.org wrote on 11.03.2010 10:37:47: > >> >> On 11. Mar, 2010, at 9:27 , mika.raj...@patria.fi wrote: >> >>> >>> >>> cmake-boun...@cmake.org wrote on 11.03.2010 10:04:42: >>> On 11.03.10 09:56:35, mika.ra

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Michael Wild
On 11. Mar, 2010, at 9:27 , mika.raj...@patria.fi wrote: > > > cmake-boun...@cmake.org wrote on 11.03.2010 10:04:42: > >> On 11.03.10 09:56:35, mika.raj...@patria.fi wrote: >>> >>> Hi >>> >>> The problem: >>> From a shared CMakeLists.txt i get the following error when defining a >>> li

Re: [CMake] Static Modules

2010-03-11 Thread Michael Wild
On 11. Mar, 2010, at 8:56 , Markus Raab wrote: > Hi! > > Ryan Pavlik wrote: >> get_target_properties() with the property SOURCES >> then for each value you get back there, do a >> get_source_file_properties() for LOCATION >> and add all such locations to a new list, then create a target with tha

Re: [CMake] Question about add_library with IMPORTED

2010-03-09 Thread Michael Wild
On 9. Mar, 2010, at 18:27 , Benoit Thomas wrote: > Hello, > > I have a library which is a Visual Studio project only (which will be > converted to cmake in the future). > > In my current cmake project, I try adding this library using the following > code: > > set (IMPORTED_LOCATION "../farfa

Re: [CMake] This has to have been asked before...

2010-03-08 Thread Michael Wild
What I did is define custom functions that wrap add_executable, add_library and target_link_libraries. Works like a charm ;-) Michael On 8. Mar, 2010, at 20:33 , David Cole wrote: > It is presently not possible to iterate over all the targets in > CMakeLists.txt unless you maintain your own li

Re: [CMake] Strange search order of CMakeCache.txt

2010-03-05 Thread Michael Wild
On 5. Mar, 2010, at 14:19 , Marcel Loose wrote: > Hi all, > > I just spent an hour debugging a very strange phenomenon running CMake > on Mac OS-X, which in the end turned out to be trivial, but completely > unexpected for me. > > The problem was caused by the fact that CMake had accidentally b

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Michael Wild
> target_link_libraries(${APP_NAME} ${SDL_LIBRARY} SDLmain) > > if(APPLE) > install(DIRECTORY ${SDL_LIBRARY} DESTINATION > ${APP_NAME}.app/Contents/Frameworks) > endif(APPLE) > > However, it doesn't copies the framework. It just does nothing. > > 2010/3/5 Michae

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Michael Wild
im is to make an standalone .app > bundle, distributable with SDL embedded. How should I use BundleUtilities to > get rid of this? > > Thanks. > > 2010/3/5 Michael Wild > >> http://www.cmake.org/Wiki/BundleUtilitiesExample >> >> Michael >>

Re: [CMake] C++ with BLAS

2010-03-05 Thread Michael Wild
On 5. Mar, 2010, at 9:25 , Nico Schlömer wrote: > Hi, > > I build my C++ application here with CMake which works rather fine, > except for one minor glitch: > The application needs to link against BLAS, which I specify as > > TARGET_LINK_LIBRARIES( /path/to/blas/libblas.a ) > > This gets inclu

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-05 Thread Michael Wild
http://www.cmake.org/Wiki/BundleUtilitiesExample Michael On 5. Mar, 2010, at 9:40 , Francisco Requena wrote: > So how do I embeed a framework on an OS X bundle? > Jjgod Jiang has the same problem here: > http://www.cmake.org/pipermail/cmake/2009-September/031713.html > > 2010/3/5 David Cole >

Re: [CMake] static library link order

2010-03-04 Thread Michael Wild
On 4. Mar, 2010, at 15:56 , Biddiscombe, John A. wrote: > given a config like this > > TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkIO vtkImaging vtksys) > > I have the trouble that vtksys pulls in a whole bunch of DynamicLoader stuff > (kwsys) - which apart from being rather odd when building stat

Re: [CMake] CMake Project Structure Out of Source Build

2010-03-04 Thread Michael Wild
On 4. Mar, 2010, at 14:02 , Flo wrote: > Hello, > > For our Project, we need a structure where its possible to work/test/deploy > a single module and also build products which uses some modules. > > f.e > > MODULE 1 > /bin > /scr > /test-src > CMakeLists.txt > > MODULE 2 >

Re: [CMake] Qt assistant in OsX application bundle

2010-03-03 Thread Michael Wild
details refer to http://doc.trolltech.com/4.6/plugins-howto.html. HTH Michael > Clint > > On 03/03/2010 07:20 AM, Michael Wild wrote: >> Hmm, that's strange... Looks like you're doing the things the right way... >> >> Have you tried making the Doc/Assistant.a

Re: [CMake] Qt assistant in OsX application bundle

2010-03-03 Thread Michael Wild
t; -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of > Martin Guillon > Sent: Monday, March 01, 2010 4:18 PM > To: Michael Wild; Michael Jackson > Cc: cmake@cmake.org > Subject: Re: [CMake] Qt assistant in OsX application bund

Re: [CMake] find_path for multiple files

2010-03-03 Thread Michael Wild
On 3. Mar, 2010, at 11:33 , Guillaume Duhamel wrote: > Hi, > > I'm working on a new FindXXX module and I need to search for paths > providing multiple header files, for instance path P1 could provide > A.h and B.h while not providing C.h when path P2 provides the three of them. > In this case, I

Re: [CMake] Supressing Make, but not Generators

2010-03-03 Thread Michael Wild
On 3. Mar, 2010, at 9:27 , Smith Jack (Ext. - UGIS - UniCredit Group) wrote: > > > >> -Original Message- >> From: cmake-boun...@cmake.org >> [mailto:cmake-boun...@cmake.org] On Behalf Of Hendrik Sattler >> Sent: Wednesday, March 03, 2010 9:21 AM >> To: cmake@cmake.org >> Subject: Re: [

Re: [CMake] Mac Bundle installation with libraries

2010-03-01 Thread Michael Wild
This would be solved by http://www.cmake.org/Bug/view.php?id=10337 which allows you to override the decision whether a library is provided by the system or not. Michael On 1. Mar, 2010, at 20:29 , James Bigler wrote: > Thanks, I didn't realize you could execute arbitrary cmake script during >

Re: [CMake] file (GLOB) on linux with CMake 2.8

2010-03-01 Thread Michael Wild
On 1. Mar, 2010, at 19:05 , Ryan Pavlik wrote: > >>> your directory to get a list of files, and do a "set(SOURCES)" command >>> and paste your file list in, or some similar technique. >>> >>> See this link for some info on why: >>> http://www.cmake.org/cmake/help/cmake2.6docs.html#command:aux_s

Re: [CMake] Qt assistant in OsX application bundle

2010-03-01 Thread Michael Wild
th a bus error during start. >> >> So did anyone successfully integrated the qt assistant in its app bundle? >> >> Thanks a lot >> >> Martin >> >> -Original Message- >> From: Michael Wild [mailto:them...@gmail.com] >> Sent: Thursday, Februa

Re: [CMake] add_custom_command issue

2010-03-01 Thread Michael Wild
On 1. Mar, 2010, at 10:38 , Surya Kiran Gullapalli wrote: >> >> you have to tell add_custom_command on what the output depends: >> >> add_custom_command (OUTPUT ${trofile} >> COMMAND perl trans.pl ${file} -o ${file_tro} >> DEPENDS ${file} >> ) >> > > I'm sorry. I should have been more clear

Re: [CMake] add_custom_command issue

2010-03-01 Thread Michael Wild
On 1. Mar, 2010, at 9:25 , Surya Kiran Gullapalli wrote: >> >> add_custom_target(TroFilesTarget DEPENDS ${trofiles}) >> add_dependencies(LibraryTarget TroFilesTarget) >> >> > Thanks, > that worked. the problem now is this. > > The individual .tro files which are created are dependent on the f

Re: [CMake] add_custom_command issue

2010-03-01 Thread Michael Wild
On 1. Mar, 2010, at 8:54 , Surya Kiran Gullapalli wrote: > Hello all, > I'm struggling with add_custom_command. Let me explain the problem in > detail. > > I've these set of cxx files and hxx files. I run a perl script on each of > them to generate a certain kind of translation file. The command

Re: [CMake] How to integrate autoconf based library into my cmake build tree

2010-02-28 Thread Michael Wild
On 1. Mar, 2010, at 4:10 , Albert Z wrote: > I just found that unless I explicitly include ExternalProject.cmak in my > cmake build, cmake won't find command "ExternalProject_Add", which is pretty > weird for me. > include(/usr/local/share/cmake-2.8/Modules/ExternalProject.cmake) Again: include

Re: [CMake] How to integrate autoconf based library into my cmake build tree

2010-02-28 Thread Michael Wild
include(ExternalProject) Michael On 1. Mar, 2010, at 2:45 , Albert Z wrote: > Thanks, Luigi. However, I read the CMake 2.8 doc and tried to use function > "ExternalProject_Add". When I ran cmake in the root of my project, I got the > following error > > Unknown CMake command "ExternalProject_A

Re: [CMake] How to install headers in a library

2010-02-28 Thread Michael Wild
On 28. Feb, 2010, at 11:09 , Hendrik Sattler wrote: > Am Sonntag 28 Februar 2010 10:31:57 schrieb Giampiero Gabbiani: >> Hi all, >> I like very much the simplicity of cmake in comparison with the classic >> autotools framework, but still I have two questions concerning the porting >> of a Linux b

[CMake] Fwd: BundleUtilities problem

2010-02-26 Thread Michael Wild
Bump... Created http://public.kitware.com/Bug/view.php?id=10337 for this. Begin forwarded message: > From: Michael Wild > Date: 22. February, 2010 4:53:07 PM GMT+01:00 > To: CMake List > Subject: BundleUtilities problem > > Hi all > > I'm using CMake-2.8.0 a

Re: [CMake] CMake finds the wrong Python interpreter on Windows

2010-02-26 Thread Michael Wild
On 25. Feb, 2010, at 22:39 , James Amundson wrote: > On 02/25/2010 12:29 PM, Bill Hoffman wrote: >> OK, so that is the problem >> >> It looks for names in this order: >> >> NAMES python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 >> python1.6 python1.5 python >> > Coinc

Re: [CMake] OsX bundle including Qt framework

2010-02-25 Thread Michael Wild
I think this is because Qt by default loads some optional plugins and finds them in your Qt installation because they do not get copied into your application bundle automatically. Since the prefixes do not match, Qt is complaining... You can confirm this by setting the environment variables DYL

Re: [CMake] Support for languages without linking phase etc

2010-02-23 Thread Michael Wild
On 23. Feb, 2010, at 15:13 , Ivan Chernetsky wrote: > 2010/2/22 Michael Wild : >> How about languages where there is no separate compiling phase, such as e.g. >> C#? Is there a placeholder in CMAKE__LINK_EXECUTABLE and >> CMAKE__CREATE_SHARED_LIBRARY that gets expanded

Re: [CMake] [ANNOUNCE] CMake has moved to Git!

2010-02-22 Thread Michael Wild
On 22. Feb, 2010, at 19:46 , Brad King wrote: > Hi Folks, > > Kitware has moved to distributed version control for CMake in order to > better engage our growing community of developers and users. It will > enhance our process for accepting patches and help give credit to all > contributors. >

[CMake] BundleUtilities problem

2010-02-22 Thread Michael Wild
Hi all I'm using CMake-2.8.0 and have the following problem when trying to deploy a Qt application (ParaView) on Mac OS X using the BundleUtilities: When using the binary Qt installer, libQtCLucene.dylib is unfortunately installed into /usr/lib, which makes get_prerequisites() (actually, the cu

Re: [CMake] Support for languages without linking phase etc

2010-02-22 Thread Michael Wild
On 20. Feb, 2010, at 19:30 , David Cole wrote: > On Fri, Feb 19, 2010 at 8:57 PM, Ivan Chernetsky > wrote: > >> Hi there! >> >> I've written almost all the .cmake files required to add Erlang >> support, but when I was approaching completion, I realized--to be >> honest, got confused by the fac

Re: [CMake] overriding CMAKE_MODULE_PATH list

2010-02-22 Thread Michael Wild
On 21. Feb, 2010, at 18:53 , Luigi Calori wrote: > Alexander Neundorf wrote: >> On Friday 19 February 2010, Luigi Calori wrote: >> >>> I would like to have some clarification about module and include >>> effective search order: >>> >>> I am in the following situation: >>> >>> I use (configure

Re: [CMake] Windows Version in HEX

2010-02-18 Thread Michael Wild
On 18. Feb, 2010, at 23:34 , aaron_wri...@selinc.com wrote: > I have a boost::asio library that wants _WIN32_WINNT or _WIN32_WINDOWS > defined to the hex version of windows, like 0x0501 for windows xp. I can > get 5.1 from CMAKE_SYSTEM_VERSION, but is there a hex version, or do I > have to do

Re: [CMake] byte-compiling emacs lisp sources

2010-02-13 Thread Michael Wild
On 13. Feb, 2010, at 13:05 , Tim Blechmann wrote: > hi all, > > i've got some troubles to byte-compile emacs lisp files with cmake. > > basically, i need to do the following > - copy source file to the build directory > - compile the elc file with: "emacs -batch -f batch-byte-compile > /path/t

Re: [CMake] statically linking

2010-02-12 Thread Michael Wild
On 12. Feb, 2010, at 12:46 , burckha...@itis.ethz.ch wrote: > Hi, > > could you please tell me how I can force cmake to link all libraries > statically? > > Thank you very much, > > Kathrin Just pass the full paths of the static libraries to TARGET_LINK_LIBRARIES. If you're using FIND_PACK

Re: [CMake] Function for visibility definitions

2010-02-11 Thread Michael Wild
On 11. Feb, 2010, at 15:40 , Hendrik Sattler wrote: > Zitat von Bill Hoffman : >> That said, you could have CMake configure a .h file that had this stuff >> in it. It might be nice if the function did that automatically, as it >> is almost the same code for every project. Then once your project

Re: [CMake] How to find the DLL's a a required package searched with FIND_PACKAGE()?

2010-02-11 Thread Michael Wild
On 11. Feb, 2010, at 9:07 , Arjen Markus wrote: > > > On 2010-02-11 01:20, David Cole wrote: >> On Wed, Feb 10, 2010 at 7:16 PM, Alan W. Irwin > >>Would setting that environment variable from cmake affect subsequent >>Windows >>builds? I don't have any Windows development experie

Re: [CMake] How to avoid continuous download while using ExternalProjects

2010-02-10 Thread Michael Wild
whn I switch from debug to release (i think because stamp file are config > dependent) Hmm. Haven't tried using a multi-config IDE so far. Are the stamp-files in a configuration-specific subdirectory? What's the value of BASE_SOURCE? > > Thanks in advance. > > Luigi

Re: [CMake] How to avoid continuous download while using ExternalProjects

2010-02-10 Thread Michael Wild
On 10. Feb, 2010, at 14:57 , Luigi Calori wrote: > I' m trying to develop a project for building several lib dependencies using > ExternalProjectAdd > > Is there a way to avoid re-download of upstream tar.gz while developing > config flags? > > ANY examples of ExternalProjectAdd would REALLY

Re: [CMake] Sourceless targets

2010-02-09 Thread Michael Wild
On 9. Feb, 2010, at 18:11 , C. Meissa wrote: > Hello, > thx for your reply… > > Am Dienstag, 9. Februar 2010 schrieb Michael Wild: >> What is it exactly you are trying to achieve? > > Well, you got me perfectly right… > I like to have all symbols in my stat

Re: [CMake] Sourceless targets

2010-02-09 Thread Michael Wild
On 9. Feb, 2010, at 17:13 , C. Meissa wrote: > Hello Lists, > > I have lots of small libraries and sometime it is needed to unify them to a > main program library e.g. libtest.so for my test program… > > I tried > ADD_LIBRARY(test-mainlib SHARED "") > SET_TARGET_PROPERTIES( test-mainlib PROPER

Re: [CMake] How to use DEFINE_SYMBOL properly?

2010-02-09 Thread Michael Wild
CMake can't possibly do this in a good and general way. I'd hate it if it tried! 1. Many projects put much more stuff in the XXX_EXPORTS (or whatever-it's-called) macros. There's a huge variability, no two projects have the exact same requirements and conventions. 2. How would the __declspec(im

Re: [CMake] link static lib to dll

2010-02-09 Thread Michael Wild
On 9. Feb, 2010, at 11:05 , Micha Renner wrote: > A DLL-library is linked to static library. > The structure of the project is this: > > main-project > +- Project STATIC > | > +- Project DLL > > This works very well. > But if I include the following export pa

Re: [CMake] Static library issues.

2010-02-05 Thread Michael Wild
On 5. Feb, 2010, at 14:37 , Surya Kiran Gullapalli wrote: > Hello all, > I'm using CMake-2.8 on winxp with Visual Studio 2005 generator. > > lets say I've a dll created (A.dll) from some cxx files and a static library > static.lib > > So I call Link_Directories to specify the directory where th

Re: [CMake] export files and FIND_PACKAGE

2010-02-05 Thread Michael Wild
On 5. Feb, 2010, at 9:18 , Micha Renner wrote: > I install a library (TLib) and their export files with these commands: > > INSTALL(TARGETS TLib EXPORT TLibX RUNTIME DESTINATION dll > LIBRARY DESTINATION lib > ARCHIVE DE

Re: [CMake] File permissions on CONFIGURE_FILE output

2010-02-03 Thread Michael Wild
You're right, I could have sworn that file(COPY...) has been around for ages ;-) Michael On 3. Feb, 2010, at 12:05 , Chris Hillery wrote: > Whoops - I take it back. I see that it IS there in the 2.8 online docs, as a > separate file( entry as you said. Not terribly clear IMHO, but > anyway. So

Re: [CMake] File permissions on CONFIGURE_FILE output

2010-02-03 Thread Michael Wild
On 3. Feb, 2010, at 10:16 , Chris Hillery wrote: > On Wed, Feb 3, 2010 at 1:09 AM, Michael Wild wrote: > >> >> On 2. Feb, 2010, at 22:31 , aaron_wri...@selinc.com wrote: >> >>> I run CONFIGURE_FILE on a file that is read only. The output file is also >>

Re: [CMake] File permissions on CONFIGURE_FILE output

2010-02-03 Thread Michael Wild
On 2. Feb, 2010, at 22:31 , aaron_wri...@selinc.com wrote: > I run CONFIGURE_FILE on a file that is read only. The output file is also > read only, which is a problem because I need to append to it. Is there a > way to change this behavior? Or a work around? > Either change the source-file pe

Re: [CMake] CoreGraphics framework

2010-02-02 Thread Michael Wild
On 2. Feb, 2010, at 12:05 , Martin Guillon wrote: > Hi, > > I am trying to include CGEvent.h in my cmake project. So I need to include > CoreGraphics framework. > > So I added > FIND_LIBRARY(APP_SERVICES ApplicationServices "/") > FIND_LIBRARY(COREGRAPHICS CoreGraphics "/") in my cmakelists

Re: [CMake] Tips to create a UseXYZ.cmake

2010-01-28 Thread Michael Wild
On 28. Jan, 2010, at 19:01 , Anton Deguet wrote: > Hello, > > Besides digging in the existing UseVTK, UseITK, UseOpenIGTLing, ... is there > a short description of the philosophy and basic commands to use? Any > pointer is welcome. This would be for a project with multiple external > depe

Re: [CMake] Changing the build-mode

2010-01-28 Thread Michael Wild
On 28. Jan, 2010, at 11:19 , Micha Renner wrote: > There is a library, which has the suffix d, if it is compiled in > Debug-Mode > > ADD_LIBRARY(${_targetname} SHARED ${_src} ${_imIncludeFiles}) > SET_TARGET_PROPERTIES(${_targetname} PROPERTIES DEBUG_OUTPUT_NAME > ${_targetname}d) > INSTALL(TARG

Re: [CMake] this is what i got struck

2010-01-28 Thread Michael Wild
Dude, you really are in some need of RTFM! E.g. here http://lmgtfy.com/?q=cmake+documentation Flaming, swearing and strong language won't get you much help here! find_library(a ...) creates a variable in the cache called "a". Next time you call find_library(a ...) it just won't do anything, bec

Re: [CMake] Xcode and working directory

2010-01-27 Thread Michael Wild
On 24. Jan, 2010, at 20:51 , Timothy Reaves wrote: > Is there a way to set the working directory? It defaults to the > generated project directory, when it probably - and in this case definitely - > should be the project directory itself. Do you mean the working directory for add_custom

Re: [CMake] Cross compilation and native executables

2010-01-26 Thread Michael Wild
On 26. Jan, 2010, at 21:28 , Guillaume Duhamel wrote: > Hi, > > I'm one of the Yabause ( http://yabause.org ) developers and we're currently > porting our build system from Autotools to CMake. We made it to the point > were basic stuff is working and we now want to get cross compilation working

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Michael Wild
t; > I'll try to look into executing install time scripts, as Eric suggested. > > Thanks for the info. > > -mika > > > > > Eric Noulard > il.com>

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Michael Wild
On 26. Jan, 2010, at 10:17 , Eric Noulard wrote: > 2010/1/26 Michael Wild : >>> >>> Michael is right and I should have tell you that too, >>> May be installing your FindXXX.cmake is not the good way to go at all. >>> >>> see reference on

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Michael Wild
On 26. Jan, 2010, at 9:59 , Eric Noulard wrote: > 2010/1/26 Michael Wild : >> >> On 26. Jan, 2010, at 9:02 , mika.raj...@patria.fi wrote: >> >>> >>> Hi >>> >>> How can i tell the NSIS installer, using cmake, to install my Find

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Michael Wild
On 26. Jan, 2010, at 9:02 , mika.raj...@patria.fi wrote: > > Hi > > How can i tell the NSIS installer, using cmake, to install my Find*.cmake > script to the ${CMAKE_ROOT}/Modules directory? > > Writing that to the "install" command doesn't work. > > I did try googling for anwsers for the bet

Re: [CMake] Checking function or symbol in namespace

2010-01-23 Thread Michael Wild
On 23. Jan, 2010, at 16:42 , Mateusz Loskot wrote: > Jed Brown wrote: >> On Thu, 21 Jan 2010 15:44:43 +, Mateusz Loskot >> wrote: >>> Why it can not work, actually? >> >> C++ does name mangling so it's difficult to determine what the symbol >> actually is (you have to know about various cl

Re: [CMake] Please support FindLAPACK/FindBLAS for C/C++-only projects

2010-01-22 Thread Michael Wild
On 22. Jan, 2010, at 10:21 , Arjen Markus wrote: > Hi Jed, > > yes, I'd say so. I have seen, I think, three or four different schemes > over the years, so that is fairly manageable. > > Regards, > > Arjen > > On 2010-01-22 10:15, Jed Brown wrote: >> On Fri, 22 Jan 2010 10:05:19 +0100, Arjen M

Re: [CMake] Checking function or symbol in namespace

2010-01-21 Thread Michael Wild
On 21. Jan, 2010, at 17:17 , Jed Brown wrote: > On Thu, 21 Jan 2010 17:03:27 +0100, Michael Wild wrote: >> But both of them just do a try_compile. I don't see where the >> name-mangling comes in there... If the user wants to check for a >> template, he has to instan

Re: [CMake] Checking function or symbol in namespace

2010-01-21 Thread Michael Wild
On 21. Jan, 2010, at 16:57 , Jed Brown wrote: > On Thu, 21 Jan 2010 15:44:43 +, Mateusz Loskot wrote: >> Why it can not work, actually? > > C++ does name mangling so it's difficult to determine what the symbol > actually is (you have to know about various classes and templates that > may be

Re: [CMake] Checking function or symbol in namespace

2010-01-21 Thread Michael Wild
On 21. Jan, 2010, at 16:44 , Mateusz Loskot wrote: > Michael Wild wrote: >> On 21. Jan, 2010, at 24:55 , Mateusz Loskot wrote: >>> Hi, >>> I'm trying to perform the following checks: >>> check_function_exists(std::pow HAVE_POW) >>> or >>&

Re: [CMake] Checking function or symbol in namespace

2010-01-21 Thread Michael Wild
On 21. Jan, 2010, at 12:07 , Marcel Loose wrote: > On Thu, 2010-01-21 at 10:14 +0100, Michael Wild wrote: >> On 21. Jan, 2010, at 9:56 , Marcel Loose wrote: >> >>> On Thu, 2010-01-21 at 06:52 +0100, Michael Wild wrote: >>>> On 21. Jan, 2010, at 24:55 ,

Re: [CMake] Checking function or symbol in namespace

2010-01-21 Thread Michael Wild
On 21. Jan, 2010, at 9:56 , Marcel Loose wrote: > On Thu, 2010-01-21 at 06:52 +0100, Michael Wild wrote: >> On 21. Jan, 2010, at 24:55 , Mateusz Loskot wrote: >> >>> Hi, >>> >>> I'm trying to perform the following checks: >>>

Re: [CMake] Checking function or symbol in namespace

2010-01-20 Thread Michael Wild
On 21. Jan, 2010, at 24:55 , Mateusz Loskot wrote: > Hi, > > I'm trying to perform the following checks: > > check_function_exists(std::pow HAVE_POW) > > or > > check_symbol_exists(std::pow cmath HAVE_POW) > > but it looks that both macros have troubles > with resolving std:: namespace. > >

Re: [CMake] dependency hell with custom commands and multiple outputs

2010-01-18 Thread Michael Wild
Y ADDITIONAL_MAKE_CLEAN_FILES ${output}) HTH Michael On 18. Jan, 2010, at 17:01 , Romain CHANU wrote: > Michael, > > How do you generate your "sentinel" or "stamp" used by your > add_custom_command? > > Cheers, > > Romain > > 2010/

Re: [CMake] dependency hell with custom commands and multiple outputs

2010-01-18 Thread Michael Wild
>100 files). > > Have you tried what David is suggesting? > > Thank you to update us. > > Cheers, > > 2010/1/13 Michael Wild > >> Hmmm, thought of something like that myself, but am not sure whether >> dependencies will be handled correctly.

Re: [CMake] Feature requests for CMake-GUI

2010-01-18 Thread Michael Wild
On 14. Jan, 2010, at 18:41 , Alexander Neundorf wrote: > On Thursday 14 January 2010, Michael Wild wrote: >> On 14. Jan, 2010, at 10:43 , Michael Wild wrote: >>> Hi all >>> >>> I normally never use cmake-gui, but did so for writing installation >>&g

Re: [CMake] Changing name of CMakeLists.txt file

2010-01-17 Thread Michael Wild
On 17. Jan, 2010, at 17:10 , Brad Bell wrote: > Is it possible to use a different name in place of CMakeLists.txt ? > > I am considering using CMake, but I want to conform the to one of the boost > guidelines at >http://www.boost.org/development/requirements.html > In particular, under the

Re: [CMake] How to refer to current configuration?

2010-01-17 Thread Michael Wild
On 16. Jan, 2010, at 22:10 , Timothy Reaves wrote: > I have a project that produces a dynamic library. This gets built to a > directory that in the src tree. Specifically, it is put in a subdirectory of > src that is the same as the name of the active configuration. So if I am > build

Re: [CMake] Set directory path in release mode

2010-01-16 Thread Michael Wild
On 16. Jan, 2010, at 17:02 , Arturo Caissut wrote: > Hi all, > I have a little problem with a C++ project I'm writing using CMake features. > I need to define two constants in one of the header files of my > projects, I found a solution for this reading "Mastering CMake". As they > suggest I wrot

Re: [CMake] How to regenerate source file during make?

2010-01-15 Thread Michael Wild
On 15. Jan, 2010, at 16:38 , David Cole wrote: > On Fri, Jan 15, 2010 at 10:35 AM, Michael Wild wrote: > >> >> On 15. Jan, 2010, at 16:25 , Marcel Loose wrote: >> >>> On Fri, 2010-01-15 at 10:07 -0500, David Cole wrote: >>>> On Fri, Jan 15, 2010 a

Re: [CMake] How to regenerate source file during make?

2010-01-15 Thread Michael Wild
On 15. Jan, 2010, at 16:25 , Marcel Loose wrote: > On Fri, 2010-01-15 at 10:07 -0500, David Cole wrote: >> On Fri, Jan 15, 2010 at 9:44 AM, Marcel Loose wrote: >>Hi Jack, >> >>The difference with your and my case is that you have an input >>file >>(the .xsd file)

Re: [CMake] Feature requests for CMake-GUI

2010-01-14 Thread Michael Wild
On 14. Jan, 2010, at 18:41 , Alexander Neundorf wrote: > On Thursday 14 January 2010, Michael Wild wrote: >> On 14. Jan, 2010, at 10:43 , Michael Wild wrote: >>> Hi all >>> >>> I normally never use cmake-gui, but did so for writing installation >>&g

Re: [CMake] Xcode path issue

2010-01-14 Thread Michael Wild
On 14. Jan, 2010, at 17:33 , Timothy Reaves wrote: > Hello all. > > In one of the projects I work on that uses cmake, there are lines of > code like so: > SET(SSPL ${SSPL} > "${CMAKE_BINARY_DIR}/plugins/HelloStelModule/src/libHelloStelModule.a") > and that seems to work for Linux a

Re: [CMake] Xcode generator linker flags

2010-01-14 Thread Michael Wild
On 14. Jan, 2010, at 16:18 , Michael Wild wrote: > Hi all > > I think that the Xcode generate is buggy as the linker flags are not > inherited from the compile flags as they do in the Unix Makefile generator. > Is this known/fixed/intentional or should I report a bug? >

[CMake] Xcode generator linker flags

2010-01-14 Thread Michael Wild
Hi all I think that the Xcode generate is buggy as the linker flags are not inherited from the compile flags as they do in the Unix Makefile generator. Is this known/fixed/intentional or should I report a bug? Michael ___ Powered by www.kitware.com V

Re: [CMake] Feature requests for CMake-GUI

2010-01-14 Thread Michael Wild
On 14. Jan, 2010, at 14:44 , Eric Noulard wrote: > 2010/1/14 Michael Wild : >> >> Exactly, and having simple "VCR-controls" to build and install (and perhaps >> clean) would be enough for those users. They don't want to look at the IDE >> or th

Re: [CMake] Feature requests for CMake-GUI

2010-01-14 Thread Michael Wild
On 14. Jan, 2010, at 14:18 , Michael Jackson wrote: > > On Jan 14, 2010, at 5:49 AM, Adolfo Rodríguez Tsouroukdissian wrote: > >> >> >> 2010/1/14 Michael Wild >> >> On 14. Jan, 2010, at 11:00 , Adolfo Rodríguez Tsouroukdissian wrote: >> >&g

Re: [CMake] Feature requests for CMake-GUI

2010-01-14 Thread Michael Wild
On 14. Jan, 2010, at 11:49 , Adolfo Rodríguez Tsouroukdissian wrote: > 2010/1/14 Michael Wild > >> >> On 14. Jan, 2010, at 11:00 , Adolfo Rodríguez Tsouroukdissian wrote: >> >>> On Thu, Jan 14, 2010 at 10:47 AM, Michael Wild >> wrote: >>>

Re: [CMake] Feature requests for CMake-GUI

2010-01-14 Thread Michael Wild
On 14. Jan, 2010, at 11:00 , Adolfo Rodríguez Tsouroukdissian wrote: > On Thu, Jan 14, 2010 at 10:47 AM, Michael Wild wrote: > >> >> On 14. Jan, 2010, at 10:43 , Michael Wild wrote: >> >>> Hi all >>> >>> I normally never use cmake-gui,

Re: [CMake] Feature requests for CMake-GUI

2010-01-14 Thread Michael Wild
On 14. Jan, 2010, at 10:47 , Adolfo Rodríguez Tsouroukdissian wrote: > On Thu, Jan 14, 2010 at 10:43 AM, Michael Wild wrote: > >> Hi all >> >> I normally never use cmake-gui, but did so for writing installation >> instructions. While doing so I came across

Re: [CMake] Feature requests for CMake-GUI

2010-01-14 Thread Michael Wild
On 14. Jan, 2010, at 10:43 , Michael Wild wrote: > Hi all > > I normally never use cmake-gui, but did so for writing installation > instructions. While doing so I came across some oddities and things that > would be useful: > > - It seems to be impossible to s

<    4   5   6   7   8   9   10   11   12   >