Re: [CMake] Possible to modify COMPILE_FLAGS?

2011-10-25 Thread Michael Wild
On 10/26/2011 03:56 AM, David Cole wrote: > On Tue, Oct 25, 2011 at 8:58 PM, Campbell Barton > wrote: > > Thanks for that, from reading the docs now this is more clear but for > some reason I had the impression the flags on a file could be > manipulated. >

[CMake] Help for exporting target information from install tree

2011-10-25 Thread He Yuqi
Hello, I am encountering specific problems and hope someone can help me. I'm working on a patch to export target information from install tree for OCE project. The OCE project use CMake to manage the build process. For some reasons, OCE project install targets int

Re: [CMake] Possible to modify COMPILE_FLAGS?

2011-10-25 Thread David Cole
On Tue, Oct 25, 2011 at 8:58 PM, Campbell Barton wrote: > Thanks for that, from reading the docs now this is more clear but for > some reason I had the impression the flags on a file could be > manipulated. > > # --- > # Heres the macro I came up with to disable certain warnings for a > given set

Re: [CMake] Boost external project doesn't build with VS2010 generator

2011-10-25 Thread David Cole
Try changing the configure command to "call bootstrap.bat" instead. I suspect this is related to the symptoms reported in these bugs: http://public.kitware.com/Bug/view.php?id=12445 http://public.kitware.com/Bug/view.php?id=12461 Related to using "bat" or "cmd" files as custom commands. We n

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

2011-10-25 Thread Bill Hoffman
On 10/25/2011 2:46 PM, Thomas Sondergaard wrote: On 2011-10-21 20:20, David Cole wrote: As an esteemed colleague has pointed out, those with "reporter" level account in Mantis may not edit bugs other than their own directly. So. if you are in that boat, but would like to vote for a bug fix t

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

2011-10-25 Thread Bill Hoffman
On 10/25/2011 2:46 PM, Thomas Sondergaard wrote: The VS2010 bug! http://public.kitware.com/Bug/view.php?id=11258 Would love to fix that if we knew how :( -Bill -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.htm

Re: [CMake] Possible to modify COMPILE_FLAGS?

2011-10-25 Thread Campbell Barton
Thanks for that, from reading the docs now this is more clear but for some reason I had the impression the flags on a file could be manipulated. # --- # Heres the macro I came up with to disable certain warnings for a given set of files... macro(remove_strict_flags_file filenames)

[CMake] Boost external project doesn't build with VS2010 generator

2011-10-25 Thread Ben Medina
Hello all, I'm trying to build Boost as an external project, but it won't build if I use the VS2010 generator. I've whittled the code down to the following CMakeLists.txt: cmake_minimum_required(VERSION 2.8) project (boost-external) set (Boost_Source "E:/boost_1_47_0") include(ExternalProject)

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Phil Smith
Yes, it's partly EBCDIC, but I don't think that's actually an issue here. The compiler allows compiling both "in ASCII" (so constants are ASCII) and native (EBCDIC); we do some of both. Good memory, btw! -Original Message- From: Alexander Neundorf [mailto:a.neundorf-w...@gmx.net] Sent:

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

2011-10-25 Thread Thomas Sondergaard
On 2011-10-21 20:20, David Cole wrote: As an esteemed colleague has pointed out, those with "reporter" level account in Mantis may not edit bugs other than their own directly. So. if you are in that boat, but would like to vote for a bug fix to be considered for 2.8.7, please reply to this th

[CMake] Windows installer creating duplicate entries in Add/Remove Programs

2011-10-25 Thread Robert Dailey
I noticed that when I install CMake 2.8 updates, I get duplicate entries in "Programs and Features" in windows 7 (the Add/Remove programs area). This seems like a bug. I searched the bug database but didn't find anything on this. Can anyone confirm? - Robert Dailey -- Powered by www.kit

Re: [CMake] Weird linking error while cross compiling

2011-10-25 Thread Andreas Pakulat
On 25.10.11 13:15:37, Jose wrote: > Hi all, > > I'm cross compiling an app under Fedora. I get this linking errors while > building with cmake : > > /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i686-pc-mingw32/bin/ld: > cannot find -lxerces-c > /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i6

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Alexander Neundorf
On Tuesday 25 October 2011, Phil Smith wrote: > No, alas. Code is proprietary and the compiler is licensed too. I think Phil asked here on the list like one year ago or so. So, there are some things to be found in the archive. Was this EBDIC stuff ? Alex -- Powered by www.kitware.com Visit othe

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Phil Smith
No, alas. Code is proprietary and the compiler is licensed too. From: David Cole [mailto:david.c...@kitware.com] Sent: Tuesday, October 25, 2011 1:41 PM To: Phil Smith Cc: Eric Noulard; Brad King; cmake@cmake.org; Bill Hoffman; Janet Graff Subject: Re: [CMake] CMake still broken post-2.8.1 Is you

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread David Cole
Is your project's source publicly available? And are these compilers freely available, too? It may be easier for us to help with a more complete picture of what's going on... On Tue, Oct 25, 2011 at 1:32 PM, Phil Smith wrote: > Replying inline is getting unwieldy, so I've excerpted what I'm re

Re: [CMake] Weird linking error while cross compiling

2011-10-25 Thread Dan Kegel
On Tue, Oct 25, 2011 at 10:15 AM, Jose wrote: > /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i686-pc-mingw32/bin/ld: > cannot find -lsqlite3 The way I usually track down things like this is to find the broken commandline (e.g. make VERBOSE=1), put it in a shell script with any needed cd, and ve

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Phil Smith
Replying inline is getting unwieldy, so I've excerpted what I'm replying to here. > Do you have a platform file for IBM_ZOS as well? Yes, there's a platform file, IBM_ZOS.cmake: INCLUDE(Platform/UnixPaths) (exciting, huh?) > what is the compiler ID found? -- The C compiler identification is un

Re: [CMake] Trouble with EXTERNALPROJECT_ADD, configure, and CFLAGS

2011-10-25 Thread David Cole
On Tue, Oct 25, 2011 at 1:09 PM, Dan Kegel wrote: > On Tue, Oct 25, 2011 at 10:05 AM, Dan Kegel wrote: > >CONFIGURE_COMMAND ${CMAKE_SOURCE_DIR}/celt/configure -C > --prefix=${CMAKE_BINARY_DIR}/prefix --disable-shared --with-pic CFLAGS="-g > -O2 -fPIC" > > Turns out the workaround is > >

[CMake] Weird linking error while cross compiling

2011-10-25 Thread Jose
Hi all, I'm cross compiling an app under Fedora. I get this linking errors while building with cmake : /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i686-pc-mingw32/bin/ld: cannot find -lxerces-c /usr/lib/gcc/i686-pc-mingw32/4.5.3/../../../../i686-pc-mingw32/bin/ld: cannot find -lportablexdr /u

Re: [CMake] Trouble with EXTERNALPROJECT_ADD, configure, and CFLAGS

2011-10-25 Thread Dan Kegel
On Tue, Oct 25, 2011 at 10:05 AM, Dan Kegel wrote: >    CONFIGURE_COMMAND ${CMAKE_SOURCE_DIR}/celt/configure -C > --prefix=${CMAKE_BINARY_DIR}/prefix --disable-shared --with-pic CFLAGS="-g > -O2 -fPIC" Turns out the workaround is CONFIGURE_COMMAND ${CMAKE_SOURCE_DIR}/celt/configure -C --p

[CMake] Trouble with EXTERNALPROJECT_ADD, configure, and CFLAGS

2011-10-25 Thread Dan Kegel
I did include(ExternalProject) ExternalProject_Add( CeltTarget SOURCE_DIR ${CMAKE_SOURCE_DIR}/celt INSTALL_DIR ${CMAKE_BINARY_DIR}/prefix CONFIGURE_COMMAND ${CMAKE_SOURCE_DIR}/celt/configure -C --prefix=${CMAKE_BINARY_DIR}/prefix --disable-shared --with-pic CFLAGS="-g -O2 -fPIC" )

Re: [CMake] Precompiled header support in Visual Studio?

2011-10-25 Thread Robert Dailey
I apologize, the code I had pasted was completely broken. I had meant to fix a couple of those issues before I posted it since I made my own customizations to it. While my real copy had the variables renamed correctly in all places, I made a stupid mistake and included the StdAfx.cpp file in my lis

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Eric Noulard
2011/10/25 Phil Smith : > OK, but it should then reject the extra parameters, since it used to work. Difficult to warn about a usage you did not even dream of ? Now that we know I agree there should be a warning (if not a clean failure with explanation). > > In any case, I've changed the toolchai

Re: [CMake] Custom target with just cmake files in it

2011-10-25 Thread Robert Dailey
On Tue, Oct 25, 2011 at 10:50 AM, David Cole wrote: > On Fri, Oct 21, 2011 at 4:08 PM, Robert Dailey wrote: > >> I have a folder with a bunch of cmake modules in it that contain my custom >> CMake code used across all projects. >> >> I only generate for visual studio, so I was thinking it would

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Alexander Neundorf
On Tuesday 25 October 2011, David Boesner wrote: > Hi, > > I want to link a .so file with a executable. > how do I do that? Use target_link_libraries(). And maybe find_library() before, depending on where that library comes from. Giving some more information and also using a suitable subject wou

Re: [CMake] How to make a shared library to use relative paths to the executable

2011-10-25 Thread Alexander Neundorf
On Tuesday 25 October 2011, Alexander Neundorf wrote: ... > If you want to create a zip file, you should use "make package" to do that. > During that step also "make install" will be executed. > In that step the install RPATH will be patched into the ELF files. > By default this will be empty (so t

Re: [CMake] How to make a shared library to use relative paths to the executable

2011-10-25 Thread Alexander Neundorf
On Tuesday 25 October 2011, Renato Utsch wrote: > Hello! > > I am learning to use CMake and I found it very easy to use, very and very > good. But I don't understand why it uses full paths instead of relative > paths when linking shared/dynamic libraries. I am currently making a > program that is

Re: [CMake] Changes between v2.8.5 and v2.8.6?

2011-10-25 Thread Alexander Neundorf
On Tuesday 25 October 2011, Markus Rathgeb wrote: > Hello! > > I am using the linux distribution gentoo. > After I tried to reinstall my qtcreator package and recreate my Qt > project by qtcreator I run in an empty project tree. > To make it more understandable: > I removed all qtcreator related f

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread David Boesner
Hi, I want to link a .so file with a executable. how do I do that? Regards David -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CM

Re: [CMake] Precompiled header support in Visual Studio?

2011-10-25 Thread John Drescher
On Tue, Oct 25, 2011 at 12:01 PM, John Drescher wrote: > On Tue, Oct 25, 2011 at 11:43 AM, Robert Dailey wrote: >> Bumping this in hopes for some help! >> > > Your version is different than the stackoverflow example > > > Line > SET(Sources ${${SourcesVar}}) > > should be > > SET(Sources ${${sour

Re: [CMake] Precompiled header support in Visual Studio?

2011-10-25 Thread John Drescher
On Tue, Oct 25, 2011 at 11:43 AM, Robert Dailey wrote: > Bumping this in hopes for some help! > Your version is different than the stackoverflow example Line SET(Sources ${${SourcesVar}}) should be SET(Sources ${${source}}) since you renamed the SourcesVar parameter. John -- Powered by www

Re: [CMake] Custom target with just cmake files in it

2011-10-25 Thread David Cole
On Fri, Oct 21, 2011 at 4:08 PM, Robert Dailey wrote: > I have a folder with a bunch of cmake modules in it that contain my custom > CMake code used across all projects. > > I only generate for visual studio, so I was thinking it would be useful to > have a dummy project in my solution named "_cm

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Phil Smith
OK, but it should then reject the extra parameters, since it used to work. In any case, I've changed the toolchain file: # This is a CMake Toolchain file, required for cross-compiling using # the Dignus cross-compilers on Windows, compiling for z/OS. # Tel

Re: [CMake] Custom target with just cmake files in it

2011-10-25 Thread Robert Dailey
Bumping this too since I'd like an answer! :P - Robert Dailey On Fri, Oct 21, 2011 at 3:08 PM, Robert Dailey wrote: > I have a folder with a bunch of cmake modules in it that contain my custom > CMake code used across all projects. > > I only generate for visual studio, so I was thinki

Re: [CMake] Precompiled header support in Visual Studio?

2011-10-25 Thread Robert Dailey
Bumping this in hopes for some help! - Robert Dailey On Fri, Oct 21, 2011 at 3:11 PM, Robert Dailey wrote: > I did some searching and on stackoverflow I found a post that had code in > it to provide precompiled header support: > > http://stackoverflow.com/questions/148570/using-pre-com

[CMake] How to make a shared library to use relative paths to the executable

2011-10-25 Thread Renato Utsch
Hello! I am learning to use CMake and I found it very easy to use, very and very good. But I don't understand why it uses full paths instead of relative paths when linking shared/dynamic libraries. I am currently making a program that is only compiled to a folder, but not installed to the system (

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Brad King
On 10/25/2011 5:00 AM, Eric Noulard wrote: 2011/10/25 Phil Smith: # Specify the cross-compilers SET(CMAKE_C_COMPILER "regina.exe" "cc.rex dcc.exe") SET(CMAKE_CXX_COMPILER "regina.exe" "cc.rex dcxx.exe") I think CMAKE_[C|CXX]_COMPILER vars are supposed to contain a command not command + list

Re: [CMake] Checking for empty string

2011-10-25 Thread Rolf Eike Beer
> On Tue, Oct 25, 2011 at 6:31 AM, Rolf Eike Beer wrote: > >> > hi there, >> > >> > how do I test if a string is empty ("") or not ? >> > IF( ${test} STREQUAL "" ) >> > gives the wrong number of arguments if ${test} is "" >> >> if ("${test}" STREQUAL "") >> if (NOT test) >> >> What does not work (

Re: [CMake] Checking for empty string

2011-10-25 Thread David Cole
On Tue, Oct 25, 2011 at 6:31 AM, Rolf Eike Beer wrote: > > hi there, > > > > how do I test if a string is empty ("") or not ? > > IF( ${test} STREQUAL "" ) > > gives the wrong number of arguments if ${test} is "" > > if ("${test}" STREQUAL "") > if (NOT test) > > What does not work (in 2.8.5) but

[CMake] Changes between v2.8.5 and v2.8.6?

2011-10-25 Thread Markus Rathgeb
Hello! I am using the linux distribution gentoo. After I tried to reinstall my qtcreator package and recreate my Qt project by qtcreator I run in an empty project tree. To make it more understandable: I removed all qtcreator related files and load the CMakeLists.txt file with qtcreator. qtcreator

Re: [CMake] Checking for empty string

2011-10-25 Thread Daniel Dekkers
Great, thanks. On Oct 25, 2011, at 11:17 AM, Eric Noulard wrote: > 2011/10/25 Daniel Dekkers : >> hi there, >> >> how do I test if a string is empty ("") or not ? >> IF( ${test} STREQUAL "" ) >> gives the wrong number of arguments if ${test} is "" > > Did you try > > IF( "${test}" STREQUAL ""

Re: [CMake] Checking for empty string

2011-10-25 Thread Rolf Eike Beer
> hi there, > > how do I test if a string is empty ("") or not ? > IF( ${test} STREQUAL "" ) > gives the wrong number of arguments if ${test} is "" if ("${test}" STREQUAL "") if (NOT test) What does not work (in 2.8.5) but should work according to the documentation: if (test STREQUAL "") Eike -

Re: [CMake] Checking for empty string

2011-10-25 Thread Eric Noulard
2011/10/25 Daniel Dekkers : > hi there, > > how do I test if a string is empty ("") or not ? > IF( ${test} STREQUAL "" ) > gives the wrong number of arguments if ${test} is "" Did you try IF( "${test}" STREQUAL "" ) ? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - ht

[CMake] Checking for empty string

2011-10-25 Thread Daniel Dekkers
hi there, how do I test if a string is empty ("") or not ? IF( ${test} STREQUAL "" ) gives the wrong number of arguments if ${test} is "" thanks, J -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep message

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Eric Noulard
Sorry for previous unfinished e-mail. 2011/10/25 Phil Smith : > Ah, ok. With 2.8.1: > > C:/Program Files/Regina/regina.exe cc.rex dcc.exe   CMakeCCompilerId.c > > With 2.8.6: > C:/Program Files/Regina/regina.exe cc.rex;dcc.exe   CMakeCCompilerId.c > > Note the semicolon; where'd it come from? Thi

Re: [CMake] install targets

2011-10-25 Thread Rolf Eike Beer
> I have split my code up into two dirs, "source" and "tests". The > CMakeLists.txt in the source dir does a SUBDIRS to > ${PROJECT_SOURCE_DIR}/../tests to get tests. Reading the documentation may help: subdirs Deprecated. Use the add_subdirectory() command instead. HTH, Eike -- Powered by w

Re: [CMake] CMake still broken post-2.8.1

2011-10-25 Thread Eric Noulard
2011/10/25 Phil Smith : > Ah, ok. With 2.8.1: > > C:/Program Files/Regina/regina.exe cc.rex dcc.exe   CMakeCCompilerId.c > > With 2.8.6: > C:/Program Files/Regina/regina.exe cc.rex;dcc.exe   CMakeCCompilerId.c > > Note the semicolon; where'd it come from? This is clearly a change of behavior but f

Re: [CMake] install targets

2011-10-25 Thread Matt Fair
Ok, sorry for the duplication, it was also discussed in: http://www.cmake.org/pipermail/cmake/2011-March/043467.html I changed everything from SUBDIRS to add_subdirectory and it worked. For my tests dir, I specified a second build dir, and everything then installed from those dirs. Matt On Tue,

Re: [CMake] Possible to modify COMPILE_FLAGS?

2011-10-25 Thread Michael Wild
On 10/25/2011 09:51 AM, Campbell Barton wrote: > The problem I'm trying to solve is to have "-Werror" for the whole > project except a few files which include system headers that give > warnings we can't workaround (even with -isystem). > > So I'm trying to get cmake to replace some flags for a sp

Re: [CMake] RC compiler on Linux - new problem

2011-10-25 Thread pellegrini
Hi Michael, I tried to adapt the files you gave me to my project. It almost works. As a reminder, there were a CMakeLists.txt with an overloaded add_executable function that created a sym_link for the rc files and a shell file (rc.sh) used to suit the rc compiler call to my needs. I found o

[CMake] Possible to modify COMPILE_FLAGS?

2011-10-25 Thread Campbell Barton
The problem I'm trying to solve is to have "-Werror" for the whole project except a few files which include system headers that give warnings we can't workaround (even with -isystem). So I'm trying to get cmake to replace some flags for a specific file, and I ran into the problem that the variable