Re: [cmake-developers] Fixing ProcessorCount.cmake

2010-11-06 Thread David Cole
I will keep going with this on Monday It was my intent to make the test fail last night on platforms where we could not determine the processor count, so we'd get a good sense of how much work remains for the platforms not yet accounted for. But I messed up the test a bit. I'll correct that,

Re: [CMake] call already made makefile

2010-11-06 Thread Michael Hertling
On 11/06/2010 06:50 AM, SK wrote: On Fri, Nov 5, 2010 at 1:04 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: I agree the above idea should work, but dropping add_custom_command completely and moving the COMMAND to add_custom_target instead (and dropping all file DEPENDS for the custom

Re: [CMake] Is there a tool pretty much like cmake for Java?

2010-11-06 Thread Andreas Schneider
On Monday, November 01, 2010 17:18:53 Michał Czuczman wrote: On 10/22/2010 10:58 PM, Ben Boeckel wrote: On Fri, Oct 22, 2010 at 04:45:42PM -0400, Ben Boeckel forgot to attach files Actually attaching things now. --Ben This is still not a perfect solution. 1. The script

Re: [CMake] header files with visual studio

2010-11-06 Thread Pedro d'Aquino
On Friday, November 5, 2010, Oliver kfsone Smith osm...@playnet.com Thanks for the detailed response, Michael :) So, the question is actually: Is there a way to have CMake automatically add included headers to visual studio project files or do you need to use a dependency system to

Re: [CMake] header files with visual studio

2010-11-06 Thread Eric Noulard
2010/11/6 Pedro d'Aquino bud...@gmail.com: On Friday, November 5, 2010, Oliver kfsone Smith osm...@playnet.com Thanks for the detailed response, Michael :) So, the question is actually: Is there a way to have CMake automatically add included headers to visual studio project files or do

Re: [CMake] header files with visual studio

2010-11-06 Thread Michael Hertling
On 11/06/2010 12:20 PM, Eric Noulard wrote: 2010/11/6 Pedro d'Aquino bud...@gmail.com: On Friday, November 5, 2010, Oliver kfsone Smith osm...@playnet.com Thanks for the detailed response, Michael :) So, the question is actually: Is there a way to have CMake automatically add included

Re: [CMake] cmake gfortran project question

2010-11-06 Thread Michael Hertling
On 11/05/2010 07:21 PM, luxInteg wrote: Greetings, I have a little learning progect using cmake with gfortran. SOURCE files: .f, .f xxx.f and .f .y I want to do the following:- a) create a shared library libFFF.so and a static one libFFF.a (from say

Re: [CMake] call already made makefile

2010-11-06 Thread SK
On Sat, Nov 6, 2010 at 2:30 AM, Michael Hertling mhertl...@online.de wrote: If you want to ensure that an output-producing custom command without dependencies runs each time its output - present or not - is referred to you might use a second, say, dummy output which never exists, e.g.:

[CMake] help with learning add_library

2010-11-06 Thread luxInteg
Greetings, I am learning cmake. I have a question on using add_library. in my project(learnCMAKE). The latter has:- ---a) 2 source files file1.c file2.c ---b) the envar {CFLAGS} set ---c) need to generate libLearnCMAKE.so and libLearnCMAKE.a ---d) need to add preprocessor agruments

Re: [CMake] help with learning add_library

2010-11-06 Thread Gerhard Gappmeier
Hi this three lines should do the job: CMakeLists.txt: project(learnCMAKE) add_definitions(-DXXX -DYYY -DSAMPLE=5) add_library(learnCMAKE file1.c file2.c) To build static libraries: mkdir bldStatic cd bldStatic cmake -DBUILD_SHARED_LIBS=off -DCMAKE_BUILD_TYPE=Release .. make cd ,, To build

Re: [CMake] help with learning add_library

2010-11-06 Thread Gerhard Gappmeier
Hi again, I'v forgotten the envar question in the mail before. If you really want to set additional options from outside CMakeLists.txt you can do this: add_defintions($ENV{CFLAGS}) using $ENV{} you can access any environment variable. On Saturday 06 November 2010 17:26:11 luxInteg wrote:

Re: [CMake] help with learning add_library

2010-11-06 Thread Michael Hertling
On 11/06/2010 05:26 PM, luxInteg wrote: Greetings, I am learning cmake. I have a question on using add_library. in my project(learnCMAKE). The latter has:- ---a) 2 source files file1.c file2.c ---b) the envar {CFLAGS} set ---c) need to generate libLearnCMAKE.so and

Re: [CMake] call already made makefile

2010-11-06 Thread Alan W. Irwin
On 2010-11-05 22:50-0700 SK wrote: On Fri, Nov 5, 2010 at 1:04 PM, Alan W. Irwin ir...@beluga.phys.uvic.ca wrote: I agree the above idea should work, but dropping add_custom_command completely and moving the COMMAND to add_custom_target instead (and dropping all file DEPENDS for the custom

Re: [CMake] help with learning add_library

2010-11-06 Thread luxInteg
On Saturday 06 November 2010 17:30:10 Michael Hertling wrote: On 11/06/2010 05:26 PM, luxInteg wrote: Greetings, I am learning cmake. I have a question on using add_library. in my project(learnCMAKE). The latter has:- ---a) 2 source files file1.c file2.c ---b) the

Re: [CMake] help with learning add_library

2010-11-06 Thread luxInteg
On Saturday 06 November 2010 16:27:06 Gerhard Gappmeier wrote: Hi this three lines should do the job: CMakeLists.txt: project(learnCMAKE) add_definitions(-DXXX -DYYY -DSAMPLE=5) add_library(learnCMAKE file1.c file2.c) To build static libraries: mkdir bldStatic cd bldStatic cmake

Re: [CMake] help with learning add_library

2010-11-06 Thread luxInteg
On Saturday 06 November 2010 21:55:21 luxInteg wrote: On Saturday 06 November 2010 17:30:10 Michael Hertling wrote: On 11/06/2010 05:26 PM, luxInteg wrote: Greetings, I am learning cmake. I have a question on using add_library. in my project(learnCMAKE). The latter has:-

Re: [CMake] help with learning add_library

2010-11-06 Thread Eric Noulard
2010/11/7 luxInteg lux-in...@btconnect.com: I tried the following:- ADD_LIBRARY(LearnCMAKE-shared SHARED   file1.c file2.c ) ADD_LIBRARY(LearnCMAKE-static STATIC  file1.c file2.c ) SET(var ) FOREACH(var DINT DLONG)        SET_SOURCE_FILES_PROPERTIES( file1.c file2.c    PROPERTIES

[CMake] CMAKE way to get leaf of file path

2010-11-06 Thread Russell L. Carter
Hi there, Happy cmake user here. I want to retrieve the leaf name of the directory property PARENT_DIRECTORY. This is really a more general cmake question: how do I most efficiently manipulate path components of the absolute pathnames that cmake uses and returns for many variables? In the

Re: [CMake] help with learning add_library

2010-11-06 Thread luxInteg
On Saturday 06 November 2010 23:08:29 Eric Noulard wrote: 2010/11/7 luxInteg lux-in...@btconnect.com: I tried the following:- ADD_LIBRARY(LearnCMAKE-shared SHARED file1.c file2.c ) ADD_LIBRARY(LearnCMAKE-static STATIC file1.c file2.c ) SET(var ) FOREACH(var DINT DLONG)

[Cmake-commits] CMake branch, master, updated. v2.8.3-5-gd95017d

2010-11-06 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 d95017deec954ad81253c9d545eaeb323c52ac0e (commit) from