Re: [CMake] Errors using CMAKE for cross compiling.

2011-06-13 Thread Kishore
On Tuesday 14 Jun 2011 9:46:56 AM jianhua wrote: > Try cross compiling using CMAKE, target tool chain is ARM RVCT4, got errors > on both Windows and Ubuntu. > > Please help, thanks in advance. > > 1. On Ubuntu. > ADD_EXECUTABLE(hello main.c) > Fatal error: C3900U: Unrecognized option '-rdynamic'

[CMake] Errors using CMAKE for cross compiling.

2011-06-13 Thread jianhua
Try cross compiling using CMAKE, target tool chain is ARM RVCT4, got errors on both Windows and Ubuntu. Please help, thanks in advance. 1. On Ubuntu. ADD_EXECUTABLE(hello main.c) Fatal error: C3900U: Unrecognized option '-rdynamic'. ADD_EXECUTABLE(hello SHARED main.c) Fatal error: C390

Re: [CMake] include_directories(SYSTEM, GNU.cmake and -isystem for C (not CXX)

2011-06-13 Thread Brad King
On 06/11/2011 02:08 AM, Campbell Barton wrote: > To follow up on this, I tested this on a test project and found the > problem was in my own macro which wasn't initializing an include list. > So only the set(CMAKE_INCLUDE_SYSTEM_FLAG_C "-isystem ") remains > which should be fixed in CMake but is e

[CMake] install python module

2011-06-13 Thread Dominik Szczerba
Hi, I am creating my python modules like: VTK_WRAP_PYTHON3 (vtkmyFilteringPython FilteringPython_SRCS "${SOURCES}") ADD_LIBRARY (vtkmyFilteringPythonD ${FilteringPython_SRCS}) TARGET_LINK_LIBRARIES(vtkmyFilteringPythonD vtkmyFiltering vtkFilteringPythonD vtkImagingPythonD ${LIBS_VTKMYFILTER

Re: [CMake] Dealing with down servers when using FindSubversion.cmake

2011-06-13 Thread John Drescher
On Mon, Jun 13, 2011 at 3:16 PM, Rolf Eike Beer wrote: > Am Montag, 13. Juni 2011, 13:02:34 schrieb John Drescher: >> I use code like the following to append a version to my applications >> based on the current svn rev. >> >> FIND_PACKAGE(Subversion) >> IF(Subversion_FOUND) >>       Subversion_WC_

Re: [CMake] Dealing with down servers when using FindSubversion.cmake

2011-06-13 Thread Rolf Eike Beer
Am Montag, 13. Juni 2011, 13:02:34 schrieb John Drescher: > I use code like the following to append a version to my applications > based on the current svn rev. > > FIND_PACKAGE(Subversion) > IF(Subversion_FOUND) > Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project) > MESSAGE("Current re

Re: [CMake] Determine Installer Build Configuration in Visual Studio

2011-06-13 Thread David Cole
On Fri, Jun 10, 2011 at 11:02 AM, Jason Gochanour wrote: > I think you may be right. CMAKE_INSTALL_CONFIG_NAME doesn't contain a value > when I run a fresh build of the PACKAGE project in Visual Studio. > > If it isn't possible to tell CPack what build configuration the user chooses > in the IDE

[CMake] Link flags not applied to static library

2011-06-13 Thread Ben Medina
Hello all, I'm using CMake 2.8.4 and am seeing an odd differenc between static and shared libraries in regard to the LINK_FLAGS property. In particular, I'm enabling "Whole program optimization" in Visual Studio 2010, which is done by add /GL as a compiler flag and /LTCG as a linker flag for the r

[CMake] Dealing with down servers when using FindSubversion.cmake

2011-06-13 Thread John Drescher
I use code like the following to append a version to my applications based on the current svn rev. FIND_PACKAGE(Subversion) IF(Subversion_FOUND) Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project) MESSAGE("Current revision is ${Project_WC_REVISION}") Subversion_WC_LOG(${PROJE

Re: [CMake] (no subject)

2011-06-13 Thread Alexander Neundorf
On Monday 13 June 2011, Gabriel Nützi wrote: > Hello > > I have the following stupid problem with cmake: > > I want > > CMAKE_BUILD_TOOL or the deprecated CMAKE_MAKE_PROGRAM to be set to > > /usr/bin/make -j12(for multithreaded build) > > how can we pass arguments to the build tool (m

Re: [CMake] ccmake options organization

2011-06-13 Thread Bill Hoffman
On 6/13/2011 11:02 AM, Szilárd Páll wrote: I would also very much like to see some form of grouping to be possible in ccmake. Right now, the only way to avoid clutter is to mark the large majority of the variables as advanced and keep only the ones that would be used frequently used and this is s

[CMake] (no subject)

2011-06-13 Thread Gabriel Nützi
Hello I have the following stupid problem with cmake: I want CMAKE_BUILD_TOOL or the deprecated CMAKE_MAKE_PROGRAM to be set to /usr/bin/make -j12    (for multithreaded build) how can we pass arguments to the build tool (make)? in eclipse that does not work because in the .cprojec

Re: [CMake] ccmake options organization

2011-06-13 Thread Szilárd Páll
I would also very much like to see some form of grouping to be possible in ccmake. Right now, the only way to avoid clutter is to mark the large majority of the variables as advanced and keep only the ones that would be used frequently used and this is still just a half-baked solution. One neat wa

Re: [CMake] ccmake options organization

2011-06-13 Thread Tim Gallagher
I agree, I much prefer it too. But the bigger issue for us is that our builds are on remote machines that we cannot X-forward, so the gui isn't even an option. We've been hearing people in our lab say "It would be nice if..." and so I thought I'd throw it out there to see what others thought a

Re: [CMake] ccmake options organization

2011-06-13 Thread Michael Wild
On 06/13/2011 11:01 AM, Alexander Neundorf wrote: > On Friday 10 June 2011, Tim Gallagher wrote: >> Hi all, >> >> We have a code that has a lot of options to enable/disable at compile time, >> and we'd also like to use ccmake to generate input files to run the code >> (possibly several hundred opti

[CMake] CMAKE internal variables, files and scope

2011-06-13 Thread Kishore
I would like to know if there is a list of all variables defined by cmake internally. ie. variables created by the various cmake supplied platform files etc. and internal to the application but not by the various find modules etc. that are explicitly invoked. I would like to know for each varia

Re: [CMake] installing without building the whole project

2011-06-13 Thread Dominik Szczerba
Many thanks! Dominik On Mon, Jun 13, 2011 at 10:57 AM, Alexander Neundorf wrote: > On Thursday 09 June 2011, Michael Hertling wrote: >> On 06/09/2011 03:34 PM, Dominik Szczerba wrote: >> > Hi, >> > >> > I have a big project with several subfolders. In one subfolder's cmake >> > file I have e.g. >

Re: [CMake] Sun compiler

2011-06-13 Thread Alexander Neundorf
On Friday 10 June 2011, Benjamin Peterson wrote: > Hi, > I'm trying to set some special flags for Sun's compiler. Does cmake set a > flag for it like it does for MSVC or COMPILER_IS_GNUCC? You can always test ${CMAKE_CXX_COMPILER_ID} (or CMAKE_C_COMPILER_ID). It has the value which is printed dur

Re: [CMake] ccmake options organization

2011-06-13 Thread Alexander Neundorf
On Friday 10 June 2011, Tim Gallagher wrote: > Hi all, > > We have a code that has a lot of options to enable/disable at compile time, > and we'd also like to use ccmake to generate input files to run the code > (possibly several hundred options combined). But the way the curses gui > organizes th

Re: [CMake] installing without building the whole project

2011-06-13 Thread Alexander Neundorf
On Thursday 09 June 2011, Michael Hertling wrote: > On 06/09/2011 03:34 PM, Dominik Szczerba wrote: > > Hi, > > > > I have a big project with several subfolders. In one subfolder's cmake > > file I have e.g. > > > > INSTALL(TARGETS test DESTINATION ${CMAKE_INSTALL_PREFIX} CONFIGURATIONS > > RELEA