Re: [CMake] Searching for an undefined symbol in library

2010-11-16 Thread Michael Wild
On 11/15/2010 06:41 PM, Marek Szuba wrote: On Mon, 15 Nov 2010 12:00:04 -0500 cmake-requ...@cmake.org wrote: How do you select which of the libraries to use? Based on your Fortran compiler? To be exact, based on the Fortran compiler used to build the binary-only library. If so, I would

[CMake] Eciipse and multiple configuration

2010-11-16 Thread Andrea Galeazzi
I followed the tutorial at http://www.cmake.org/Wiki/Eclipse_CDT4_Generator in order to generate an Eclipse project. The only difference is that I select eclipseCDT - MiinGW Makefiles instead of eclipseCDT -Unix Makefiles. What I don't understand is how can I manage multiple configurations in

Re: [CMake] CPack general question and example

2010-11-16 Thread David Doria
Great, it's working. The only thing that was required was: SET(CPACK_DEBIAN_PACKAGE_MAINTAINER David Doria) Here is the working example: http://www.cmake.org/Wiki/CMake/CPack/Examples/Linux/DEB The page you sent (http://www.vtk.org/Wiki/CMake:CPackPackageGenerators#DEB_.28UNIX_only.29) has a

[CMake] BundleUtilities

2010-11-16 Thread David Doria
Hi all, I found the Qt example here: http://www.itk.org/Wiki/BundleUtilitiesExample http://www.itk.org/Wiki/images/2/25/QtTest-Package-Example.zip The two INSTALL commands seem fairly complicated - is there not a way to do all of that in the project-to-be-included's cmake configuration so that

Re: [CMake] Eciipse and multiple configuration

2010-11-16 Thread Philip Lowman
You really can't, unfortunately because only one configuration is possible per CMake build directory with the Makefile generator. Most people set CMAKE_BUILD_TYPE to Debug when using the Eclipse CDT4 Generator so they can debug. If you need to test regularly with release binaries, one solution

Re: [CMake] CPack general question and example

2010-11-16 Thread Eric Noulard
2010/11/16 David Doria daviddo...@gmail.com: Great, it's working.  The only thing that was required was: SET(CPACK_DEBIAN_PACKAGE_MAINTAINER David Doria) Here is the working example: http://www.cmake.org/Wiki/CMake/CPack/Examples/Linux/DEB The page you sent

[CMake] ARCHIVE_OUTPUT_DIRECTORY seems to not work

2010-11-16 Thread Andrea Galeazzi
I'm trying to compile a static library named libkernel.a into a custom path. I tried to set ARCHIVE_OUTPUT_DIRECTORY in two ways: 1: set_property(TARGET PROPERTY ARCHIVE_OUTPUT_DIRECTORY O:/kernel/${CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_TYPE}) message(library output: ${ARCHIVE_OUTPUT_DIRECTORY})

Re: [CMake] ARCHIVE_OUTPUT_DIRECTORY seems to not work

2010-11-16 Thread Rolf Eike Beer
Am Dienstag, 16. November 2010 schrieb Andrea Galeazzi: I'm trying to compile a static library named libkernel.a into a custom path. I tried to set ARCHIVE_OUTPUT_DIRECTORY in two ways: 1: set_property(TARGET PROPERTY ARCHIVE_OUTPUT_DIRECTORY

Re: [CMake] Merging a project from autoconf and GNUMakefiles

2010-11-16 Thread Alan W. Irwin
On 2010-11-16 09:35-0500 Torri, Stephen CIV NSWCDD, W15 wrote: I am trying to merge a project that was using autoconf and GNUMakefiles. When you use automake you can build static libraries in sub directories and then link them together into one shared library in the end that was install. This

Re: [CMake] ARCHIVE_OUTPUT_DIRECTORY seems to not work

2010-11-16 Thread Michael Hertling
On 11/16/2010 06:18 PM, Andrea Galeazzi wrote: I'm trying to compile a static library named libkernel.a into a custom path. I tried to set ARCHIVE_OUTPUT_DIRECTORY in two ways: 1: set_property(TARGET PROPERTY ARCHIVE_OUTPUT_DIRECTORY O:/kernel/${CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_TYPE})

[CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread K. Noel Belcourt
Hi, I've attached my project's top-level Makefile. I'm trying to force all the modules in the project to build first so I created a single library called modules that contains all my Fortran 90 module files. I'm invoking the Makefile explicitly passing the modules as the target to

Re: [CMake] BundleUtilities

2010-11-16 Thread Michael Jackson
I think we used Qt as a basis because lots of people at the time were asking for it. Probably the simplest to demonstrate would be an example that builds a dynamic library and an executable that uses that library so therefor it must be packaged with the executable. Were you wanting to

[CMake] help with cmake fortran envar

2010-11-16 Thread luxInteg
Greetings, I am learning cmake. I have a fortran only project with some source files with f77 routines to compile, My CMakeLists.txt in the projects base directory has the following lines set(CMAKE_Fortran_COMPILER gfortran) ENABLE_LANGUAGE(Fortran) but running cmake ends

Re: [CMake] help with cmake fortran envar

2010-11-16 Thread Rolf Eike Beer
Am Dienstag, 16. November 2010 schrieb luxInteg: Greetings, I am learning cmake. I have a fortran only project with some source files with f77 routines to compile, My CMakeLists.txt in the projects base directory has the following lines set(CMAKE_Fortran_COMPILER gfortran)

[CMake] Compiling header files

2010-11-16 Thread David Doria
I am trying to use ADD_LIBRARY to create a .lib file from a collection of .cpp and .h files. If I do: ADD_LIBRARY(LibraryName AllOfTheCPPFiles.cpp) and then try to link against that library, I get many missing-function type linker errors. I looked in the .h files and many of them have actual

Re: [CMake] BundleUtilities

2010-11-16 Thread David Doria
On Tue, Nov 16, 2010 at 1:35 PM, Michael Jackson mike.jack...@bluequartz.net wrote: I think we used Qt as a basis because lots of people at the time were asking for it. Probably the simplest to demonstrate would be an example that builds a dynamic library and an executable that uses that

Re: [CMake] Compiling header files

2010-11-16 Thread Ryan Pavlik
Is this a library that has built successfully before with another build system? Has this application been built successfully before? For instances where the actual implementation is in the .h file, you usually must make sure you #include that header file in a cpp in your own application (the app

Re: [CMake] Compiling header files

2010-11-16 Thread David Cole
If you have unresolved external errors, then you are (most likely) missing a target_link_libraries call -- find out what library those symbols are built into, and link to that library. On Tue, Nov 16, 2010 at 2:03 PM, David Doria daviddo...@gmail.com wrote: I am trying to use ADD_LIBRARY to

Re: [CMake] BundleUtilities

2010-11-16 Thread David Cole
On Tue, Nov 16, 2010 at 2:06 PM, David Doria daviddo...@gmail.com wrote: On Tue, Nov 16, 2010 at 1:35 PM, Michael Jackson mike.jack...@bluequartz.net wrote: I think we used Qt as a basis because lots of people at the time were asking for it. Probably the simplest to demonstrate would be an

Re: [CMake] Compiling header files

2010-11-16 Thread David Doria
Ryan, The issue is that these headers are only used internally to this collection of files, so I don't want to have to include them in my code. Here is a skeleton: The files I've been given -- External.h External.cpp Internal.h (used by External) Internal.cpp My files

Re: [CMake] setting the COMPILE_FLAGS property causes VS to start compiling header files

2010-11-16 Thread James Bigler
On Tue, Nov 16, 2010 at 12:27 AM, Rolf Eike Beer e...@sf-mail.de wrote: Am Dienstag, 16. November 2010 schrieb Eric Noulard: 2010/11/15 James Bigler jamesbig...@gmail.com If I set a COMPILE_FLAGS property on a header file via set_source_files_properties, CMake decides that these header

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Brad King
Hi Noel, On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level Makefile. I'm trying to force all the modules in the project to build first so I created a single library called modules that contains all my Fortran 90 module files. I'm invoking the

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Belcourt, K. Noel
On Nov 16, 2010, at 1:59 PM, Brad King wrote: Hi Noel, On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level Makefile. I'm trying to force all the modules in the project to build first so I created a single library called modules that contains all my Fortran

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Belcourt, K. Noel
On Nov 16, 2010, at 2:05 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 1:59 PM, Brad King wrote: On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level Makefile. I'm trying to force all the modules in the project to build first so I created a single library

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Eric Noulard
2010/11/16 Belcourt, K. Noel kbe...@sandia.gov: On Nov 16, 2010, at 2:05 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 1:59 PM, Brad King wrote: On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level Makefile.  I'm trying to force all the modules in the

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Brad King
On 11/16/2010 04:24 PM, Belcourt, K. Noel wrote: which is the same list of libraries in these SUBDIRS commands in the top-level CMakeLists.txt file (in reverse order). There's a single library in each of these subdirs of the same lower-cased name. ... SUBDIRS(Modules) SUBDIRS(MP)

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Belcourt, K. Noel
On Nov 16, 2010, at 2:50 PM, Brad King wrote: On 11/16/2010 04:24 PM, Belcourt, K. Noel wrote: which is the same list of libraries in these SUBDIRS commands in the top-level CMakeLists.txt file (in reverse order). There's a single library in each of these subdirs of the same lower-cased

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Belcourt, K. Noel
On Nov 16, 2010, at 2:48 PM, Eric Noulard wrote: 2010/11/16 Belcourt, K. Noel kbe...@sandia.gov: On Nov 16, 2010, at 2:05 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 1:59 PM, Brad King wrote: On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread K. Noel Belcourt
On Nov 16, 2010, at 2:48 PM, Eric Noulard wrote: 2010/11/16 Belcourt, K. Noel kbe...@sandia.gov: On Nov 16, 2010, at 2:05 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 1:59 PM, Brad King wrote: On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Brad King
On 11/16/2010 04:52 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 2:50 PM, Brad King wrote: On 11/16/2010 04:24 PM, Belcourt, K. Noel wrote: which is the same list of libraries in these SUBDIRS commands in the top-level CMakeLists.txt file (in reverse order). There's a single library

Re: [CMake] header files with visual studio

2010-11-16 Thread Oliver kfsone Smith
Michael Jackson said the following on 11/15/2010 11:56 AM: Ahh. It is a bit clearer the tract you are taking. What I am suggesting is that you only have to run the scanner once and keep the results in CMake syntax files so that CMake can just simply re-use the list. As you add headers during

[CMake] VS solution folder puts first project last

2010-11-16 Thread James Bigler
Has anyone else noticed situations where VS puts the first project (as determined alphabetically) in a project folder as the last project? CMakePredefinedTargets -- PACKAGE -- RUN_TESTS -- ZERO_CHECK -- INSTALL I'm using VS 2008 SP 1 with CMake 2.8.3. I've verified this with a simple project

Re: [CMake] Compiling header files

2010-11-16 Thread David Doria
Hm, it works correctly in Linux, but I still get a bunch of error LNK2019: unresolved external symbol errors in Windows. The only difference I see is that the .lib file gets created in a subdirectory of bin/ bin/Debug/OSC.lib (or bin/Release/OSC.lib) vs the .a file which gets created in bin

Re: [CMake] Compiling header files

2010-11-16 Thread Bill Hoffman
On 11/16/2010 7:19 PM, David Doria wrote: Hm, it works correctly in Linux, but I still get a bunch of error LNK2019: unresolved external symbol What symbols? Try running dumpbin /symbols OSC.lib. Also use VS IDE to make sure the library is listed. Everything look ok? Any thoughts?

Re: [CMake] Compiling header files

2010-11-16 Thread David Doria
Also use VS IDE to make sure the library is listed. The library is indeed listed in Additional Dependencies of the linker for the executable target. What symbols? Try running dumpbin /symbols OSC.lib. I figured it out - I had to link to winmm to get the symbol: symbol __imp__timeGetTime and

Re: [CMake] BundleUtilities

2010-11-16 Thread David Doria
Is the goal simply to copy ...VTK/bin/libvtkHybrid.a into the package? I tried this: INSTALL(CODE \${VTK_DIR}/bin/libvtkHybrid.a) But I get: Parse error. Expected a command name, got unquoted argument with text ${VTK_DIR}/bin/libvtkHybrid.a. I made a home for this here:

Re: [CMake] BundleUtilities

2010-11-16 Thread Tyler Roscoe
On Tue, Nov 16, 2010 at 10:15:28PM -0500, David Doria wrote: Is the goal simply to copy ...VTK/bin/libvtkHybrid.a into the package? I tried this: INSTALL(CODE \${VTK_DIR}/bin/libvtkHybrid.a) More like: INSTALL(FILES ${VTK_DIR}/bin/libvtkHybrid.a) tyler

Re: [CMake] How to install openbabel python bindings by using the new cmake installer (problem selecting a particular python version).

2010-11-16 Thread Michael Hertling
On 11/13/2010 03:08 PM, Marcus D. Hanwell wrote: On Nov 13, 2010, at 8:57 AM, Michael Hertling wrote: On 11/12/2010 02:13 PM, Hector Martinez-Seara wrote: Dear all, I'm trying to install openbabel in linux which in its last version (2.3.0) uses cmake installer. I haven't been able to

Re: [CMake] VS solution folder puts first project last

2010-11-16 Thread Rolf Eike Beer
Am Mittwoch, 17. November 2010 schrieb James Bigler: Has anyone else noticed situations where VS puts the first project (as determined alphabetically) in a project folder as the last project? Yes, I have seen this when using the new FOLDER property for targets. I see this behaviour within the

[Cmake-commits] CMake branch, master, updated. v2.8.3-56-gf4f3c9f

2010-11-16 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via f4f3c9ff493e41d10f31d8b143e396516311f6c2 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.3-58-gcaf680c

2010-11-16 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via caf680c4d7115fb5e6e16f4a738a7f49346b5de3 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.3-61-gb61c5be

2010-11-16 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via b61c5be3d79bd890fc5d56ac8313bb84897cc1c1 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.3-71-gc172ffe

2010-11-16 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via c172ffef061c1bf412389fdf01275cf91aa2ff79 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.3-75-g164b11d

2010-11-16 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 164b11deb735e33e9dd14becac71288689617dda (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.3-76-gb541b12

2010-11-16 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via b541b1213ac4bf95a186d9fa753ba2566e598d06 (commit) from