Re: [CMake] open source project for CMake ports?

2009-02-16 Thread Patrick Spendrin
Philip Lowman schrieb: Hi, Luigi suggested a kind of CMake ports system in a recent thread here on the CMake mailing list. This would presumably be a system whereby popular 3rd party dependencies which have not yet CMakeified their source trees could be CM'd and baselined in one place and ul

Re: [CMake] Install target is not called

2009-02-16 Thread Eric Noulard
2009/2/17 Pavel Shevaev : > Folks, what can be the reason for install target not to be called? I > have something like this in my CMakeLists.txt: > > add_executable(foo src1 src2 src3) > target_link_libraries(foo ${libs}) > install(PROGRAMS ${foo_BINARY_DIR}/foo > DESTINATION ${foo_SOU

[CMake] Unrealistic percent numbers(Ubuntu cmake 2.6-patch0)

2009-02-16 Thread Pavel Shevaev
Hi, CMakers :) I'm experiencing very weird percent numbers during the build procedure, something like this: [ 20%] Built target foo [ 50%] Built target bar [150%] Built target baz [170%] Built target wow ... [1000%] Built target hey What can be causing this strange behaviour? Improperly written

[CMake] Install target is not called

2009-02-16 Thread Pavel Shevaev
Folks, what can be the reason for install target not to be called? I have something like this in my CMakeLists.txt: add_executable(foo src1 src2 src3) target_link_libraries(foo ${libs}) install(PROGRAMS ${foo_BINARY_DIR}/foo DESTINATION ${foo_SOURCE_DIR}/bin ) And for s

Re: [CMake] parsing config.h files and setting cmake variables accordingly

2009-02-16 Thread Clemens Arth
Yes, that was exactly what I did and it works on Linux, but it does not help in VS, unfortunately... VS sets up all the includes and linking options right, but then it prompts me to reload the project, and that's it only a complete "rebuild" lets the project recompile the sources. Clemens

Re: [CMake] CheckTypeSize and non-standard headers

2009-02-16 Thread Aaron Turner
On Mon, Feb 16, 2009 at 9:53 PM, Philip Lowman wrote: > On Tue, Feb 17, 2009 at 12:41 AM, Aaron Turner wrote: >> >> On Mon, Feb 16, 2009 at 9:28 PM, Philip Lowman wrote: >> > On Mon, Feb 16, 2009 at 10:23 PM, Aaron Turner >> > wrote: >> >> For now, i'm just hacking around the issue with: >> >>

Re: [CMake] CheckTypeSize and non-standard headers

2009-02-16 Thread Philip Lowman
On Tue, Feb 17, 2009 at 12:41 AM, Aaron Turner wrote: > On Mon, Feb 16, 2009 at 9:28 PM, Philip Lowman wrote: > > On Mon, Feb 16, 2009 at 10:23 PM, Aaron Turner > wrote: > >> For now, i'm just hacking around the issue with: > >> > >> check_include_file("runetype.h" HAVE_RUNETYPE_H) > >> IF(

[CMake] Working with make test

2009-02-16 Thread ankit jain
Hi all, Actually my test cases are written in C files. os iam creating executable for that nad directly run the executbale through make. Is it necessary to do it like "make test"? If iam not doing is it iam missing something. Apart form them i have some of my test cases defined in .tsh files w

Re: [CMake] CheckTypeSize and non-standard headers

2009-02-16 Thread Aaron Turner
On Mon, Feb 16, 2009 at 9:28 PM, Philip Lowman wrote: > On Mon, Feb 16, 2009 at 10:23 PM, Aaron Turner wrote: >> >> On Mon, Feb 16, 2009 at 5:53 PM, Michael Jackson >> wrote: >> > project(Test) >> > cmake_minimum_required(VERSION 2.7) >> > >> > INCLUDE(${CMAKE_ROOT}/Modules/CheckTypeSize.cmake)

Re: [CMake] CheckTypeSize and non-standard headers

2009-02-16 Thread Philip Lowman
On Mon, Feb 16, 2009 at 10:23 PM, Aaron Turner wrote: > On Mon, Feb 16, 2009 at 5:53 PM, Michael Jackson > wrote: > > project(Test) > > cmake_minimum_required(VERSION 2.7) > > > > INCLUDE(${CMAKE_ROOT}/Modules/CheckTypeSize.cmake) > > > > set(CMAKE_REQUIRED_DEFINITIONS_SAVE ${CMAKE_REQUIRED_DEFI

Re: [CMake] Fwd: setting environment variable through cmake

2009-02-16 Thread Philip Lowman
On Tue, Feb 17, 2009 at 12:15 AM, Philip Lowman wrote: > On Mon, Feb 16, 2009 at 11:03 PM, ankit jain wrote: > >> >> >> -- Forwarded message -- >> From: ankit jain >> Date: 2009/2/17 >> Subject: Re: [CMake] setting environment variable through cmake >> To: Philip Lowman >> >> >

Re: [CMake] Fwd: setting environment variable through cmake

2009-02-16 Thread Philip Lowman
On Mon, Feb 16, 2009 at 11:03 PM, ankit jain wrote: > > > -- Forwarded message -- > From: ankit jain > Date: 2009/2/17 > Subject: Re: [CMake] setting environment variable through cmake > To: Philip Lowman > > > 2009/2/17 Philip Lowman > > On Mon, Feb 16, 2009 at 7:46 AM, ankit

[CMake] Fwd: setting environment variable through cmake

2009-02-16 Thread ankit jain
-- Forwarded message -- From: ankit jain Date: 2009/2/17 Subject: Re: [CMake] setting environment variable through cmake To: Philip Lowman 2009/2/17 Philip Lowman On Mon, Feb 16, 2009 at 7:46 AM, ankit jain wrote: > >> Hi all, >> >> I want to set an enviromnet varibale but n

Re: [CMake] CheckTypeSize and non-standard headers

2009-02-16 Thread Aaron Turner
On Mon, Feb 16, 2009 at 5:53 PM, Michael Jackson wrote: > project(Test) > cmake_minimum_required(VERSION 2.7) > > INCLUDE(${CMAKE_ROOT}/Modules/CheckTypeSize.cmake) > > set(CMAKE_REQUIRED_DEFINITIONS_SAVE ${CMAKE_REQUIRED_DEFINITIONS}) > set(CMAKE_REQUIRED_DEFINITIONS > ${CMAKE_REQUIRED_DEFINITION

Re: [CMake] open source project for CMake ports?

2009-02-16 Thread Alan W. Irwin
On 2009-02-17 00:41+0100 Luigi Calori wrote: I think also the KDE-on-Windows developer cmakeified a few projects. I' ve checked out the [KDE-on-Windows] project, it is really inetresting, I' ve tried their emerge utility (a kind of a port of the Gentoo portage tools on windows) It seems it is

Re: [CMake] setting environment variable through cmake

2009-02-16 Thread Philip Lowman
On Mon, Feb 16, 2009 at 7:46 AM, ankit jain wrote: > Hi all, > > I want to set an enviromnet varibale but not able to do it. > Currently iam using the command: > SET( ENV{varname} value ) > > But it is not working. > Can anybody guide me how to do it by giving an example. > Are you trying to set

Re: [CMake] CheckTypeSize and non-standard headers

2009-02-16 Thread Michael Jackson
project(Test) cmake_minimum_required(VERSION 2.7) INCLUDE(${CMAKE_ROOT}/Modules/CheckTypeSize.cmake) set(CMAKE_REQUIRED_DEFINITIONS_SAVE ${CMAKE_REQUIRED_DEFINITIONS}) set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS};- D__need_wint_t=1) CHECK_TYPE_SIZE(wint_t WINT_T) message(STATU

Re: [CMake] open source project for CMake ports?

2009-02-16 Thread Philip Lowman
On Sun, Feb 15, 2009 at 11:30 PM, Bill Hoffman wrote: > Philip Lowman wrote: > >> Hi, >> >> Luigi suggested a kind of CMake ports system in a recent thread here on >> the CMake mailing list. This would presumably be a system whereby popular >> 3rd party dependencies which have not yet CMakeified

Re: [CMake] CheckTypeSize and non-standard headers

2009-02-16 Thread Aaron Turner
More testing seems to indicate that check_symbol_exists won't find any typedef defined in headers. Looking a the CheckSymbolExists.cmake file, the following .c is generated as a test: #include void cmakeRequireSymbol(int dummy,...) { (void)dummy; } int main() { #ifndef wint_t cmakeRequi

Re: [CMake] open source project for CMake ports?

2009-02-16 Thread Luigi Calori
Alexander Neundorf ha scritto: On Monday 16 February 2009, Philip Lowman wrote: Hi, Luigi suggested a kind of CMake ports system in a recent thread here on the CMake mailing list. This would presumably be a system whereby popular 3rd party dependencies which have not yet CMakeified their so

Re: [CMake] CheckTypeSize and non-standard headers

2009-02-16 Thread Aaron Turner
On Mon, Feb 16, 2009 at 12:14 PM, Michael Jackson wrote: > SET(CMAKE_REQUIRED_INCLUDES_SAVE ${CMAKE_REQUIRED_INCLUDES}) > SET(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES};/usr/include") > > CHECK_SYMBOL_EXISTS(wint_t "runetype.h" HAVE_WINT_T) > > SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED

Re: [CMake] open source project for CMake ports?

2009-02-16 Thread Alexander Neundorf
On Monday 16 February 2009, Philip Lowman wrote: > Hi, > > Luigi suggested a kind of CMake ports system in a recent thread here on the > CMake mailing list. This would presumably be a system whereby popular 3rd > party dependencies which have not yet CMakeified their source trees could > be CM'd a

Re: [CMake] How can I install something into an absolute directory?

2009-02-16 Thread Alexander Neundorf
On Monday 16 February 2009, Andreas Pakulat wrote: > On 16.02.09 21:12:46, Kermit Mei wrote: > > How can I install something into an absolute directory? > > For example, I want to install the directory under /usr/share. > > When I use the following command: > > INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}

Re: [CMake] CheckTypeSize and non-standard headers

2009-02-16 Thread Michael Jackson
SET(CMAKE_REQUIRED_INCLUDES_SAVE ${CMAKE_REQUIRED_INCLUDES}) SET(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES};/usr/include") CHECK_SYMBOL_EXISTS(wint_t "runetype.h" HAVE_WINT_T) SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_SAVE}) IF (HAVE_WINT_T) message(STATUS "wint_t is availa

[CMake] CheckTypeSize and non-standard headers

2009-02-16 Thread Aaron Turner
I'm trying to figure out how to write my CMakeLists.txt file to find wint_t under OSX which defines it in /usr/include/runetype.h rather then one of the standard headers that CheckTypeSize uses. I was hoping Cmake behaved like autotools where if you first look for the header it will automatically

Re: [CMake] include_regular_expression question(Ubuntu CMake-2.6-patch0)

2009-02-16 Thread Pavel Shevaev
On Sun, Feb 15, 2009 at 11:02 PM, Pavel Shevaev wrote: > Sorry folks, I'm replying to myself - I think I've found a solution: > mark directory containing infrequently changing paths using > "set_directory_properties", e.g: > > set_directory_properties(PROPERTIES INCLUDE_REGULAR_EXPRESSION "^$") A

Re: [CMake] CMake Facebook group

2009-02-16 Thread Mike Arthur
On Monday 16 February 2009 16:09:19 Bill Hoffman wrote: > I have created a CMake Facebook group that is open to the public. If > you are on Facebook, please feel free to join. Link: http://www.facebook.com/group.php?gid=54596142422 -- Cheers, Mike Arthur http://mikearthur.co.uk/

[CMake] CMake Facebook group

2009-02-16 Thread Bill Hoffman
I have created a CMake Facebook group that is open to the public. If you are on Facebook, please feel free to join. -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html P

Re: [CMake] Add_custom_target copying files

2009-02-16 Thread Leopold Palomo Avellaneda
A Dilluns 16 Febrer 2009, Michael Jackson va escriure: > Not sure, it should work. > > Try changing POST_BUILD to PRE_BUILD and see what happens. > > also try printing the variable ${${inputPo}} > > message(STATUS "${inputPo}: ${${inputPo}}") > message(STATUS "inputPo: ${inputPo}") Well, first o

Re: [CMake] How to build projects with make -j2 and ADD_SUBDIRECTORY?

2009-02-16 Thread Michael Wild
On 16. Feb, 2009, at 14:42, Micha Renner wrote: Hi Michael This works for me (Mac OS X 10.5.6, GNU Make 3.81). What version of Make are you using? The same as you. Reasonably recent versions of GNU Make should be able to do exactly that, but AFAIK, nmake and MSYS Make have serious trouble

Re: [CMake] setting environment variable through cmake

2009-02-16 Thread Nicolas Desprès
Hi, What version of cmake do you use? It is working for me. Cheers, Nico On Mon, Feb 16, 2009 at 6:46 AM, ankit jain wrote: > Hi all, > > I want to set an enviromnet varibale but not able to do it. > Currently iam using the command: > SET( ENV{varname} value ) > > But it is not working. > Can

Re: [CMake] How can I install something into an absolute directory?

2009-02-16 Thread Andreas Pakulat
On 16.02.09 21:12:46, Kermit Mei wrote: > How can I install something into an absolute directory? > For example, I want to install the directory under /usr/share. > When I use the following command: > INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/dict/mydir DESTINATION share) > > 'mydir' may be installed i

Re: [CMake] Add_custom_target copying files

2009-02-16 Thread Michael Jackson
Not sure, it should work. Try changing POST_BUILD to PRE_BUILD and see what happens. also try printing the variable ${${inputPo}} message(STATUS "${inputPo}: ${${inputPo}}") message(STATUS "inputPo: ${inputPo}") _ Mike Jackson

Re: [CMake] parsing config.h files and setting cmake variables accordingly

2009-02-16 Thread Michael Jackson
You would also want to add the configured file (config.h) to the list of sources that get compiled. configure_file(... config.h) add_executable(MyApp main.c config.h) That way the dependency is setup between the configured file and the compilation of the executable. Also I think it is g

[CMake] How can I install something into an absolute directory?

2009-02-16 Thread Kermit Mei
Hello, community! How can I install something into an absolute directory? For example, I want to install the directory under /usr/share. When I use the following command: INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/dict/mydir DESTINATION share) 'mydir' may be installed into /usr/local/share, if I run

[CMake] setting environment variable through cmake

2009-02-16 Thread ankit jain
Hi all, I want to set an enviromnet varibale but not able to do it. Currently iam using the command: SET( ENV{varname} value ) But it is not working. Can anybody guide me how to do it by giving an example. Ankit ___ Powered by www.kitware.com Visit o

Re: [CMake] relative CMAKE_MODULE_PATH

2009-02-16 Thread Philip Lowman
.. Original Message ... On Mon, 16 Feb 2009 12:45:06 +0100 "Eric Noulard" wrote: >2009/2/16 Pau Garcia i Quiles : >> This works for me with CMake CVS: >> >> SET( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ) > >Yes I do that too but... >this is not a relative path :-) Try using CMAK

Re: [CMake] relative CMAKE_MODULE_PATH

2009-02-16 Thread Eric Noulard
2009/2/16 Pau Garcia i Quiles : > Hello, > > This works for me with CMake CVS: > > SET( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ) Yes I do that too but... this is not a relative path :-) as asked in the first place: >> is it possible to set a relative path as CMAKE_MODULE_PATH ? I don't r

Re: [CMake] relative CMAKE_MODULE_PATH

2009-02-16 Thread Pau Garcia i Quiles
Hello, This works for me with CMake CVS: SET( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ) On Mon, Feb 16, 2009 at 11:26 AM, Johannes Stallkamp wrote: > Hello list, > > is it possible to set a relative path as CMAKE_MODULE_PATH ? I > actually had problems with that (CMake 2.6.3-RC 8) > Is it

Re: [CMake] parsing config.h files and setting cmake variables accordingly

2009-02-16 Thread Clemens Arth
Hi again, now I have followed exactly that way and created a config.cmake file, which is translated into a config.h file. This approach works perfectly well on Linux and everything immediately responds to changes in the config.cmake file. However, if I create a Visual Studio project on Window

[CMake] relative CMAKE_MODULE_PATH

2009-02-16 Thread Johannes Stallkamp
Hello list, is it possible to set a relative path as CMAKE_MODULE_PATH ? I actually had problems with that (CMake 2.6.3-RC 8) Is it because the relative path would be resolved w.r.t current build dir and not w.r.t. to the directory with CMakeLists.txt ? Reason: I want to point CMAKE_MODULE_PATH t

Re: [CMake] How to build projects with make -j2 and ADD_SUBDIRECTORY?

2009-02-16 Thread Michael Wild
On 16. Feb, 2009, at 8:49, Micha Renner wrote: How to build projects with make -j2 and ADD_SUBDIRECTORY? A TOP-Level CMakeLists.txt has the following lines: ADD_SUBDIRECTORY(libtiff) # The Library ADD_SUBDIRECTORY(test)# Programm depending on libtiff # more subdiretories depending on lib