[CMake] OSX framework include is not included

2010-07-09 Thread Gregory Sharp
Hi, I can't seem to get OSX to include my framework directory. Here is what my cmake file looks like: MESSAGE (STATUS "OPENCL_INCLUDE_DIR = ${OPENCL_INCLUDE_DIR}") INCLUDE_DIRECTORIES (${OPENCL_INCLUDE_DIR}) ADD_EXECUTABLE(opencl_test opencl_test.cxx) TARGET_LINK_LIBRARIES(opencl_test ${

Re: [CMake] CTest examples

2010-07-09 Thread Alok Govil
While I was suspecting something like this about CTest, your explanation helps a lot. I have integrated UnitTest++ into my flow, and it is working quite well. It does also return a 0 if all tests pass, so one could integrate with CTest/CDash if desirable. Thanks Date: Fri, 9 Jul 2010 14:54:4

Re: [CMake] CTest examples

2010-07-09 Thread David Cole
On Fri, Jul 9, 2010 at 5:54 PM, Chris Hillery wrote: > For CTest, running a test means running an executable and seeing whether > the result of that process is 0 (success) or not 0 (failure). It is also > possible to scan the output of the executable for certain regular > expressions to determine

Re: [CMake] CTest examples

2010-07-09 Thread Chris Hillery
For CTest, running a test means running an executable and seeing whether the result of that process is 0 (success) or not 0 (failure). It is also possible to scan the output of the executable for certain regular expressions to determine success or failure. It's a very simple and somewhat limited m

Re: [CMake] cmake -E tar on Darwin 10.4

2010-07-09 Thread David Cole
Yes. Some tar files had problems when attempting extraction with CMake's old libtar implementation. (On Mac and other platforms, too...) We think they are all fixed as of CMake 2.8.2 since the addition of libarchive and the removal of libtar. Let us know if you still have problems when trying wit

[CMake] cmake -E tar on Darwin 10.4

2010-07-09 Thread Tim St. Clair
Folks - I'm running cmake 2.8.0 and noticing an interesting anomaly on Darwin 10.4 when extracting an external project: cmake -E tar xfz globus-5.0.1.tar.gz CMake Error: Problem with tar_extract_all(): Operation not permitted CMake Error: Problem extracting tar: globus-5.0.1.tar.gz yet, tar

Re: [CMake] Copy two files into one file

2010-07-09 Thread Rolf Eike Beer
Am Friday 09 July 2010 schrieb Bo Thorsen: > The problem with this is that the Windows copy command wants \ instead of > /. > > If I have to do the replacement, is there a better way to do this than > to use the STRING command with a char replace? FILE(TO_NATIVE_PATH path result) HTH Eike si

Re: [CMake] Copy two files into one file

2010-07-09 Thread Tyler Roscoe
On Fri, Jul 09, 2010 at 06:39:57PM +0200, Bo Thorsen wrote: > Does this also work with binary files? From the documentation on FILE, > this isn't really clear to me. Why don't you try it and let us know? tyler ___ Powered by www.kitware.com Visit oth

Re: [CMake] CTest examples

2010-07-09 Thread Eric Noulard
2010/7/9 Bo Thorsen : > Hi people, > > I have converted a set of applications to cmake and cpack, and now have my > eyes set on ctest. > > I'd like to hear if someone here has some good advice, or links to good > advice, on how to structure tests. I'm searching for help on how to put > different te

Re: [CMake] Copy two files into one file

2010-07-09 Thread Bo Thorsen
Den 09-07-2010 16:48, Michael Hertling skrev: On 07/09/2010 03:48 PM, Bo Thorsen wrote: Hi all, Is there an elegant way of copying two files into one? Right now, I have this: ADD_CUSTOM_COMMAND(OUTPUT privilege_tables.sql COMMAND copy /b ${CMAKE_CUR

Re: [CMake] Copy two files into one file

2010-07-09 Thread Michael Hertling
On 07/09/2010 03:48 PM, Bo Thorsen wrote: > Hi all, > > Is there an elegant way of copying two files into one? > > Right now, I have this: > > ADD_CUSTOM_COMMAND(OUTPUT privilege_tables.sql > COMMAND copy /b > ${CMAKE_CURRENT_SOURCE_DIR}/system_tables.sq

Re: [CMake] building tests

2010-07-09 Thread Michael Wild
On 9. Jul, 2010, at 15:48 , Michael Hertling wrote: > On 07/08/2010 09:47 AM, Paul Harris wrote: >> On 8 July 2010 15:31, Michael Wild wrote: >> >>> >>> On 8. Jul, 2010, at 7:25 , Paul Harris wrote: >>> On 8 July 2010 12:56, Michael Wild wrote: > > On 8. Jul, 2010, at 4:4

Re: [CMake] Propagating variable to toplevel parent

2010-07-09 Thread Mathieu Malaterre
On Wed, Jul 7, 2010 at 3:06 PM, Michael Wild wrote: > project(bla NONE) > > set_property(GLOBAL PROPERTY v "13") > add_subdirectory(foo) > get_property(v GLOBAL PROPERTY v) > message("final v: ${v}") > > > For properties you must always use getters and setters, they are never > directly mapped to

[CMake] Copy two files into one file

2010-07-09 Thread Bo Thorsen
Hi all, Is there an elegant way of copying two files into one? Right now, I have this: ADD_CUSTOM_COMMAND(OUTPUT privilege_tables.sql COMMAND copy /b ${CMAKE_CURRENT_SOURCE_DIR}/system_tables.sql + ${CMAKE_CURRENT_SOURCE_DIR}/tables_f

Re: [CMake] building tests

2010-07-09 Thread Michael Hertling
On 07/08/2010 09:47 AM, Paul Harris wrote: > On 8 July 2010 15:31, Michael Wild wrote: > >> >> On 8. Jul, 2010, at 7:25 , Paul Harris wrote: >> >>> On 8 July 2010 12:56, Michael Wild wrote: >>> On 8. Jul, 2010, at 4:40 , Paul Harris wrote: > On 7 July 2010 23:05, Michael Wild

Re: [CMake] FILE command working

2010-07-09 Thread Michael Wild
It works for me if I use file(STRINGS test.txt test_str) foreach(line IN LISTS test_str) message("line = ${line}") endforeach() Problem is that empty lines result in empty elements in test_str, which are discarded by the old-style foreach loop over a list. Michael On 9. Jul, 2010, at 13:27 ,

[CMake] CTest examples

2010-07-09 Thread Bo Thorsen
Hi people, I have converted a set of applications to cmake and cpack, and now have my eyes set on ctest. I'd like to hear if someone here has some good advice, or links to good advice, on how to structure tests. I'm searching for help on how to put different tests into what executables. On h

Re: [CMake] FILE command working

2010-07-09 Thread David Cole
Aren't the strings split at newline characters? If not, then a text file would usually simply be one giant string On Fri, Jul 9, 2010 at 7:33 AM, Johny wrote: > On 07/09/2010 01:27 PM, David Cole wrote: > > Are some of the lines empty by any chance? > > Empty elements are not iterated in

Re: [CMake] FILE command working

2010-07-09 Thread David Cole
Are some of the lines empty by any chance? Empty elements are not iterated in a foreach of a list. Nor (I would expect, I have not verified) is an empty string considered a string for reporting by file(STRINGS ... HTH, David On Fri, Jul 9, 2010 at 5:24 AM, Johny wrote: > Hi, > > I was worki

Re: [CMake] FILE command working

2010-07-09 Thread Johny
On 07/09/2010 01:27 PM, David Cole wrote: Are some of the lines empty by any chance? Empty elements are not iterated in a foreach of a list. Nor (I would expect, I have not verified) is an empty string considered a string for reporting by file(STRINGS ... HTH, David On Fri, Jul 9, 2010 at

Re: [CMake] Building a Version Header

2010-07-09 Thread Johannes Stallkamp
Am 09.07.2010 12:56, schrieb Michael Hertling: > As the version target is always out of date it will be build each time > you (re)build main, but since CONFIGURE_FILE() obviously does not touch > the output file as long as it won't change, version.h isn't timestamped, > so it doesn't trigger the re

Re: [CMake] [MinGW64] cmake can't validate cxx and fortran compilers.

2010-07-09 Thread Sisyphus
- Original Message - From: "David Cole" To: "Sisyphus" Cc: "cmake" Sent: Thursday, July 08, 2010 8:38 PM Subject: Re: [CMake] [MinGW64] cmake can't validate cxx and fortran compilers. If you need to specify compilers that are not picked up by default, use environment variables t

Re: [CMake] Install PDB files

2010-07-09 Thread Bo Thorsen
Den 08-07-2010 21:56, Rolf Eike Beer skrev: Am Thursday 08 July 2010 schrieb Bo Thorsen: Den 07-07-2010 19:43, Rolf Eike Beer skrev: Am Wednesday 07 July 2010 schrieb Patrick Spendrin: we're currently thinking about setting up a symbol server for our project, and cannot find out how to install

Re: [CMake] Building a Version Header

2010-07-09 Thread Michael Hertling
On 07/08/2010 10:31 PM, Tyler Roscoe wrote: > On Wed, Jul 07, 2010 at 10:43:15PM -0400, John Drescher wrote: >> On Wed, Jul 7, 2010 at 9:44 PM, Clark Gaebel wrote: >>> I would like to generate file that looks something like this: >>> >>>// version.h >>>#define VERSION "v0.1-345-ga77ede8" >

Re: [CMake] PROJECT() command when cross compiling

2010-07-09 Thread Kishore
On Wednesday 07 Jul 2010 8:54:52 pm Kishore wrote: > On Friday 02 Jul 2010 12:36:17 am Kishore wrote: > > On Friday 02 Jul 2010 12:07:07 am Alexander Neundorf wrote: > > > On Thursday 01 July 2010, Kishore wrote: > > > > It seems that the PROJECT() command does a fair bit behind the scenes > > > >

Re: [CMake] FILE command working

2010-07-09 Thread Eric Noulard
2010/7/9 Johny : > On 07/09/2010 11:31 AM, Michael Wild wrote: >> >> On 9. Jul, 2010, at 11:24 , Johny wrote: >> >> >>> >>> Hi, >>> >>> I was working with the FILE(STRINGS filename lineList) and i discovered >>> that i end up getting a list which has a lesser number of strings than the >>> actual l

Re: [CMake] FILE command working

2010-07-09 Thread Michael Wild
On 9. Jul, 2010, at 11:24 , Johny wrote: > Hi, > > I was working with the FILE(STRINGS filename lineList) and i discovered that > i end up getting a list which has a lesser number of strings than the actual > lines in the file. However this happens with only some files, i went through > those

[CMake] include properties file for Makefile

2010-07-09 Thread thidney thidney
Hi, I am converting our old Makefiles to cmake. In one Makefile we use "include different/project/build.mak" which basicacly contain KEY=VALUE lines. I am trying to find out how to pass this directive from CMakeLists.txt to generated Makefiles? Is it possible with CMake? Thanks Thidney _

Re: [CMake] FILE command working

2010-07-09 Thread Johny
On 07/09/2010 11:31 AM, Michael Wild wrote: On 9. Jul, 2010, at 11:24 , Johny wrote: Hi, I was working with the FILE(STRINGS filename lineList) and i discovered that i end up getting a list which has a lesser number of strings than the actual lines in the file. However this happens with

[CMake] FILE command working

2010-07-09 Thread Johny
Hi, I was working with the FILE(STRINGS filename lineList) and i discovered that i end up getting a list which has a lesser number of strings than the actual lines in the file. However this happens with only some files, i went through those but they seem to be regular files. When i count the

Re: [CMake] Building a Version Header

2010-07-09 Thread Marcel Loose
Hi Daniel, Clark, I've got a solution that rebuilds a .h and .cc file whenever anything has changed in your working copy, e.g. an 'svn update'. It also records local modifications that have not been checked in yet. However, if you plan to include this version header file in *every* source you're

Re: [CMake] Bug fix requests for the *next* release of CMake...

2010-07-09 Thread Jarl Lindrud
> >Hi all, > >Now that we have released CMake 2.8.2 last Monday, and we have switched to >this new workflow using branches in the git repository, *now* would be a >great time to prioritize bug fixes for the next release of CMake. Hi, It would be great if this issue could be fixed: 0010611: VS201

Re: [CMake] Building a Version Header

2010-07-09 Thread Johannes Stallkamp
Hi, Am 08.07.2010 22:31, schrieb Tyler Roscoe: > On Wed, Jul 07, 2010 at 10:43:15PM -0400, John Drescher wrote: >> On Wed, Jul 7, 2010 at 9:44 PM, Clark Gaebel wrote: >>> I would like to generate file that looks something like this: >>> >>>// version.h >>>#define VERSION "v0.1-345-ga77ede