Re: [cmake-developers] I want to use CMake in Solaris10 x86

2011-06-14 Thread Eric Noulard
2011/6/14 Alan W. Irwin ir...@beluga.phys.uvic.ca: On 2011-06-14 10:37+0800 feng.zhou wrote: Hi I cannot find insall packet in download list,only Solaris spack packet can be found.How to solve this question ,thanks Try building cmake from the source code using the bootstrap method (i.e.

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

2011-06-14 Thread jianhua
Thanks Kishore; It really works as expected after your guidence change. At 2011-06-14 12:47:52,Kishore kitts.mailingli...@gmail.com wrote: 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

[CMake] Post-process compiler output

2011-06-14 Thread Sebastian Schaetz
Hi, I'm using CMake to generate makefiles to build my C++ projects with g++. When developing code I find it useful to post-process g++ output. In particular I like to feed the output through gSTLFilt.pl [0] and a custom version of colorgcc [1]. Currently I have a wrapper around make (I call

Re: [CMake] Post-process compiler output

2011-06-14 Thread Michael Wild
On 06/14/2011 11:36 AM, Sebastian Schaetz wrote: Hi, I'm using CMake to generate makefiles to build my C++ projects with g++. When developing code I find it useful to post-process g++ output. In particular I like to feed the output through gSTLFilt.pl [0] and a custom version of colorgcc

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-14 Thread Łukasz Tasz
Hi all, Other than the 'more elegant' prospect of being able to just put .cu files into a target, is there anything else deficient about the current FindCUDA macros? All you have to do really is to use cuda_add_executable instead of add_executable. As far as I understood the topic aim is

Re: [CMake] CMake 2.8.5-rc1 ready for testing!

2011-06-14 Thread Johannes Stallkamp
Hi, Would be great if http://www.cmake.org/Bug/view.php?id=12260 would make it into 2.8.5. Best Johannes ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

Re: [CMake] Post-process compiler output

2011-06-14 Thread Michael Hertling
On 06/14/2011 11:46 AM, Michael Wild wrote: On 06/14/2011 11:36 AM, Sebastian Schaetz wrote: Hi, I'm using CMake to generate makefiles to build my C++ projects with g++. When developing code I find it useful to post-process g++ output. In particular I like to feed the output through

Re: [CMake] CMake 2.8.5-rc1 ready for testing!

2011-06-14 Thread Tyler
I believe you're way too late for 2.8.5, but there should be a call for bugs for 2.8.6 coming along shortly after 2.8.5 is released. tyler On Tue, Jun 14, 2011 at 4:50 AM, Johannes Stallkamp johannes.stallk...@rub.de wrote: Hi, Would be great if http://www.cmake.org/Bug/view.php?id=12260

[CMake] FindCurses.cmake does not find libncurses.so

2011-06-14 Thread David Demelier
Hello, On FreeBSD the status of ncurses is particularly annoying. We have a old curses lib under /usr/lib/libcurses.so that does not provide ncurses functionalities. I tried the following CMakeLists.txt cmake_minimum_required(VERSION 2.8) project(cmaketest) set(srcs main.c)

[CMake] Changing definitions at compile time

2011-06-14 Thread Kfir Lavi
Hi, I need to compile the code twice. Once with -DA and once with -DB My code look like this: add_definitions(-DA) add_library(${mylib_A} SHARED ${myfiles}) remove_definitions(-DA) add_definitions(-DB) add_library(${lib_B} SHARED ${myfiles}) remove_definitions(-DB) What cmake does is to define A

Re: [CMake] FindCurses.cmake does not find libncurses.so

2011-06-14 Thread aaron . meadows
Looking at FindCurses.cmake, it looks like it will prefer libcurses if it finds it (line 33). Specifically, it will try to determine if libcurses provides ncurses by seeing if libcurses contians the function wsyncup() (line 60). Here is the logic that does this (lines 47-71): # Not sure the

Re: [CMake] FindCurses.cmake does not find libncurses.so

2011-06-14 Thread David Demelier
On 14/06/2011 17:22, David Demelier wrote: Hello, On FreeBSD the status of ncurses is particularly annoying. We have a old curses lib under /usr/lib/libcurses.so that does not provide ncurses functionalities. I tried the following CMakeLists.txt cmake_minimum_required(VERSION 2.8)

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Andreas Naumann
Am 14.06.2011 18:12, schrieb Kfir Lavi: Hi, I need to compile the code twice. Once with -DA and once with -DB My code look like this: add_definitions(-DA) add_library(${mylib_A} SHARED ${myfiles}) remove_definitions(-DA) add_definitions(-DB) add_library(${lib_B} SHARED ${myfiles})

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Kfir Lavi
On Tue, Jun 14, 2011 at 8:04 PM, Andreas Naumann andreas-naum...@gmx.netwrote: Am 14.06.2011 18:12, schrieb Kfir Lavi: Hi, I need to compile the code twice. Once with -DA and once with -DB My code look like this: add_definitions(-DA) add_library(${mylib_A} SHARED ${myfiles})

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Michael Wild
On 06/14/2011 07:12 PM, Kfir Lavi wrote: On Tue, Jun 14, 2011 at 8:04 PM, Andreas Naumann andreas-naum...@gmx.net mailto:andreas-naum...@gmx.net wrote: Am 14.06.2011 18:12, schrieb Kfir Lavi: Hi, I need to compile the code twice. Once with -DA and once with -DB My code

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Andreas Naumann
Am 14.06.2011 19:26, schrieb Michael Wild: On 06/14/2011 07:12 PM, Kfir Lavi wrote: On Tue, Jun 14, 2011 at 8:04 PM, Andreas Naumann andreas-naum...@gmx.netmailto:andreas-naum...@gmx.net wrote: Am 14.06.2011 18:12, schrieb Kfir Lavi: Hi, I need to compile the code

[CMake] SWIG, Java and CMake

2011-06-14 Thread Daniel Blezek
We are using SWIG in the SimpleITK project ( https://github.com/SimpleITK/SimpleITK for the interested ) to generate Java wrappings for our library. The problem I¹m having is how to educate CMake about Java. SWIG generates a known-only-at-compile-time set of Java code. CMake prefers to know in

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Michael Wild
On 06/14/2011 09:12 PM, Andreas Naumann wrote: Am 14.06.2011 19:26, schrieb Michael Wild: On 06/14/2011 07:12 PM, Kfir Lavi wrote: On Tue, Jun 14, 2011 at 8:04 PM, Andreas Naumann andreas-naum...@gmx.netmailto:andreas-naum...@gmx.net wrote: Am 14.06.2011 18:12, schrieb Kfir Lavi:

Re: [CMake] Changing definitions at compile time

2011-06-14 Thread Andreas Naumann
Am 14.06.2011 21:26, schrieb Michael Wild: On 06/14/2011 09:12 PM, Andreas Naumann wrote: Am 14.06.2011 19:26, schrieb Michael Wild: On 06/14/2011 07:12 PM, Kfir Lavi wrote: On Tue, Jun 14, 2011 at 8:04 PM, Andreas Naumann

[CMake] Examples creating exported Makefiles and correct library link order

2011-06-14 Thread Lori Pritchett-Sheats
My project needs to create and install a Makefile that other client projects could import to link against our project. T I have a simple template file that generates an exported Makefile using the configure_file command, however I'm struggling with how to create a variable that contains all

[CMake] Doesn't support SHARED libraries during cross compiling using ARM RVCT40.

2011-06-14 Thread jianhua
Hi All; No matter Linux or Windows, when try to build SHARED library, it will always get the following error message. ADD_LIBRARY(hello SHARED hello.c) ADD_LIBRARY for library hello is used with the SHARED option, but the target platform supports only STATIC libraries. Building it STATIC

Re: [CMake] Examples creating exported Makefiles and correct library link order

2011-06-14 Thread J Decker
I wrote a C script that I configure_file on that writes a cmakelists module (might also be a makefile) (I think) The cmake way would be to define PROJECT_LIBRARIES; PROJECT_INCLUDE_DIR; PROJECT_LIBRARY_DIR; PROJECT_INCLUDE_DIR... all of which can be built from knowing CMAKE_INSTALL_PREFIX but

Re: [CMake] Examples creating exported Makefiles and correct library link order

2011-06-14 Thread J Decker
Okay really sorry - CMAKE_INSTALL_CONFIG_NAME isn't relavent for things using makefile... should just use CMAKE_BUILD_TYPE... but also I guess a lot of projects don't support that either On Tue, Jun 14, 2011 at 7:11 PM, J Decker d3c...@gmail.com wrote: I wrote a C script that I configure_file

Re: [CMake] Doesn't support SHARED libraries during cross compiling using ARM RVCT40.

2011-06-14 Thread jianhua
The background of this question is that I want to build one BrewMP project, the compiler is ARM RVCT40. Original build method is below: 1. Build many static libraries. 2. Link them to elf. 3. Create mod file, final one. Now What I need to do is to achieve these steps by CMAKE, any idea or

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-14 Thread James Bigler
On Tue, Jun 14, 2011 at 5:18 AM, Łukasz Tasz luk...@tasz.eu wrote: Hi all, Other than the 'more elegant' prospect of being able to just put .cu files into a target, is there anything else deficient about the current FindCUDA macros? All you have to do really is to use

[Cmake-commits] CMake branch, next, updated. v2.8.4-1743-gb95ceab

2011-06-14 Thread Brad King
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, next has been updated via b95ceab28c13481295ba5673e01c4473eb6a3573 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.4-1745-g4568693

2011-06-14 Thread Brad King
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, next has been updated via 4568693bbbfea752588a7cc89c466403924442c4 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-555-gf616f26

2011-06-14 Thread Brad King
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 f616f263cd016a978dd04ce7b62d8dcabd0f4e2e (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-558-gbe555a0

2011-06-14 Thread Brad King
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 be555a042e319792ed0be02451203814cf35bd8a (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-560-g0373e08

2011-06-14 Thread Brad King
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 0373e08f154b69bb3c1f301aacd669e22c8b66f9 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.4-562-ga652af7

2011-06-14 Thread Brad King
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 a652af77ce630fb6ff893181171a70ed82bfc905 (commit) via