Re: [CMake] CPack and configure_file

2011-01-10 Thread Michael Hertling
On 01/11/2011 12:55 AM, Tobias Ellinghaus wrote: > Am Montag, 10. Januar 2011 schrub Eric Noulard: >> 2011/1/10 Tobias Ellinghaus : >>> Hello, >>> >>> I create some files inside of CMAKE_CURRENT_BINARY_DIR using >>> configure_file(). These are not installed but needed for compiling the >>> program.

Re: [CMake] add_subdirectory and link_directories

2011-01-10 Thread Michael Hertling
On 01/10/2011 06:24 PM, Andrea Galeazzi wrote: > I've got a main project which relies on several sub-library projects, so > the main CMakeLists.txt > add_subdirectory("W:/Omega/Kernel" "${CMAKE_CURRENT_BINARY_DIR}/myLib1") > ... > and then I also specify the directory where all libraries

Re: [CMake] CPack and configure_file

2011-01-10 Thread Tobias Ellinghaus
Am Montag, 10. Januar 2011 schrub Eric Noulard: > 2011/1/10 Tobias Ellinghaus : > > Hello, > > > > I create some files inside of CMAKE_CURRENT_BINARY_DIR using > > configure_file(). These are not installed but needed for compiling the > > program. When creating a .tgz file with make package_source

Re: [CMake] fixup_bundle, shared libs and Plugins

2011-01-10 Thread Michael Jackson
And just to follow up a bit with something else, I added the following bit of cmake code for the 2 libraries MXADataModel and AIMLib: SET_TARGET_PROPERTIES(${targetName} PROPERTIES LINK_FLAGS "-current_version ${${CMP_PROJECT_NAME}_VERSION} -compatibility_version ${${CMP_PROJECT_NAME}_VERS

[CMake] fixup_bundle, shared libs and Plugins

2011-01-10 Thread Michael Jackson
CMake 2.8.3, OS X 10.6.6, Makefiles I am attempting to use fixup_bundle() to create my OS X app bundle. The issue I am running into is that under a certain case some common libraries that get built by the project are not being resolved correctly. Here goes the explanation: I have a project "IP

Re: [CMake] FIND_PROGRAM w/ CMake 2.8.2 and Cygwin

2011-01-10 Thread Eric Noulard
2011/1/10 marco atzeri : > On Mon, Jan 10, 2011 at 3:43 PM, Emmanuel Blot  wrote: >> Hello All, [...] >> >> 1/ Is this a known issue / new regression? >>  I have not been subscribed to the ML for a while, and I can't find a >> decent way to search through the ML archives, >> http://www.cmake.org/pi

Re: [CMake] cmake and buildvariants

2011-01-10 Thread Eric Noulard
2011/1/10 John Beuving : > > I have the following software setup where I need to have build variants > providing different builds for the same (sub)project > > -    worker ( calls the Qt Processevents function if Qt is enabled for this > project (#define  USE_WORKER_QT) > -    gui app (uses Qt) > -

Re: [CMake] CPack and configure_file

2011-01-10 Thread Eric Noulard
2011/1/10 Tobias Ellinghaus : > Hello, > > I create some files inside of CMAKE_CURRENT_BINARY_DIR using configure_file(). > These are not installed but needed for compiling the program. When creating a > .tgz file with make package_source these files are not included so that the package_source wil

Re: [CMake] Cross-compiling a static library (CMake 2.8.3)

2011-01-10 Thread Emmanuel Blot
>> INCLUDE (CMakeForceCompiler) >> CMAKE_FORCE_C_COMPILER (arm-eabi-gcc-4.5.2 GNU 4) > > I haven't used that one before. FWIW: I found why I use CMAKE_FORCE_C_COMPILER rather than the simpler CMAKE_C_COMPILER command: I build projects for eCos from outside the eCos tree directory, and CMake has so

Re: [CMake] Cross-compiling a static library (CMake 2.8.3)

2011-01-10 Thread Emmanuel Blot
> The docs say that the signature is > CMAKE_FORCE_C_COMPILER( ) > so maybe something bad happens when you give it that extra > argument "4"? Try without "4"? Actually, it changes nothing. *but* if I remove the specific version number for the compiler, i.e. I define FIND_PROGRAM (xcc ${XTOOL

[CMake] Fwd: Cross-compiling a static library (CMake 2.8.3)

2011-01-10 Thread Emmanuel Blot
Oops, I forgot to post to the ML -- Forwarded message -- From: Emmanuel Blot Date: 2011/1/10 Subject: Re: [CMake] Cross-compiling a static library (CMake 2.8.3) To: Bjørn Forsman > I haven't used that one before. The docs say it should be used > when CMake is not able to detect

Re: [CMake] Cross-compiling a static library (CMake 2.8.3)

2011-01-10 Thread Bjørn Forsman
Hi, (CCing the list.) 2011/1/10 Emmanuel Blot : >> When I cross compile I do "set(CMAKE_C_COMPILER arm-linux-gcc)" >> in a toolchain file and CMake automatically finds ranlib (and other >> toolchain utilities) using the prefix from the C compiler. How do you >> setup CMake for cross-compilation?

Re: [CMake] CMake 2.8.3: find_package(Java) on HP-UX gives warning "regex not supported"

2011-01-10 Thread Gerhard Grimm
Hello David, even after a close look at issue #11183 I don't think that this is related to the problem I reported. Therefore I created issue #11676. Best regards, Gerhard -- Gerhard Grimm Software Engineering DETEC Software GmbH (Beta Systems Group) From: David Cole To: Bill Hoffman Cc: c

Re: [CMake] CMake 2.8.3: find_package(Java) on HP-UX gives warning "regex not supported"

2011-01-10 Thread Gerhard Grimm
Hello Bill, it's issue #11676. Best Regards, Gerhard -- Gerhard Grimm Software Engineering DETEC Software GmbH (Beta Systems Group) From: Bill Hoffman To: cmake@cmake.org Date: 10.01.2011 18:12 Subject: Re: [CMake] CMake 2.8.3: find_package(Java) on HP-UX gives warning "regex not supported"

[CMake] Qt4 module too restrictive about uic requirement

2011-01-10 Thread Thomas Petazzoni
Hello, The FindQt4 module requires the uic executable to be present, otherwise it declares the Qt installation as invalid and bails out. However, Qt can be compiled without the GUI (which is interesting on embedded systems), and in this case, uic is not installed and not necessary. Therefore, the

Re: [CMake] CMake 2.8.3: find_package(Java) on HP-UX gives warning "regex not supported"

2011-01-10 Thread David Cole
It's already reported. It's in the note on this bug: http://public.kitware.com/Bug/view.php?id=11183 On Mon, Jan 10, 2011 at 12:11 PM, Bill Hoffman wrote: > Can you create a bug entry for this? > > > On 1/10/2011 7:39 AM, Gerhard Grimm wrote: > >> Hello there, >> >> recently I upgraded the CMake

[CMake] add_subdirectory and link_directories

2011-01-10 Thread Andrea Galeazzi
I've got a main project which relies on several sub-library projects, so the main CMakeLists.txt add_subdirectory("W:/Omega/Kernel" "${CMAKE_CURRENT_BINARY_DIR}/myLib1") ... and then I also specify the directory where all libraries have been built (by setting ARCHIVE_OUTPUT_DIRECTORY fo

Re: [CMake] CPack and configure_file

2011-01-10 Thread Andreas Pakulat
On 10.01.11 17:26:04, Tobias Ellinghaus wrote: > Hello, > > I create some files inside of CMAKE_CURRENT_BINARY_DIR using > configure_file(). > These are not installed but needed for compiling the program. When creating a > .tgz file with make package_source these files are not included so that

Re: [CMake] fixup_bundle() and stripping prerequisites

2011-01-10 Thread KC Jones
I'm interested in this too. My CPack script is limping along now, but the resulting bundle yields reams of log messages like: 1/6/11 5:50:49 PM [0x0-0x2d42d4].myspp[23814] objc[23814]: Class QCocoaColorPanelDelegate is implemented in both /Users/kcjones/projects/myspp/build/_CPack_Pa

Re: [CMake] CMake 2.8.3: find_package(Java) on HP-UX gives warning "regex not supported"

2011-01-10 Thread Bill Hoffman
Can you create a bug entry for this? On 1/10/2011 7:39 AM, Gerhard Grimm wrote: Hello there, recently I upgraded the CMake installation on our HP-UX 11.23 (IA64) system from 2.6.4 to 2.8.3. The system has HP's Java Runtime Environment installed in /opt/java6(the environment variable JAVA_HOMEis

Re: [CMake] Regex help: multi-line matching and matching backslashes

2011-01-10 Thread Ben Medina
It doesn't seem to work: cmake_minimum_required (VERSION 2.8) set (contents "Hello\nWorld!") message ("${contents}") string (REGEX MATCHALL "Hello[\\r\\n\\t ]*World!" matches ${contents}) message ("Matches:") foreach (match ${matches}) message ("${match}") endforeach () This produces no mat

Re: [CMake] Cross-compiling a static library (CMake 2.8.3)

2011-01-10 Thread Bjørn Forsman
Hi, On 10 January 2011 17:00, Emmanuel Blot wrote: > Hello, > > Using the ADD_LIBRARY command for a static library (.a), how to tell > CMake to use the ranlib tool for the target, not the default one for > the host? > > I'm getting the following warning message: > > cd watchdog && /usr/local/Cell

[CMake] CPack and configure_file

2011-01-10 Thread Tobias Ellinghaus
Hello, I create some files inside of CMAKE_CURRENT_BINARY_DIR using configure_file(). These are not installed but needed for compiling the program. When creating a .tgz file with make package_source these files are not included so that the resulting source package is basically useless. Is ther

Re: [CMake] Cross-compiling a static library (CMake 2.8.3)

2011-01-10 Thread Emmanuel Blot
> I'm getting the following warning message: >From http://www.cmake.org/pipermail/cmake/2010-September/039705.html, it seems on my development environment that _CMAKE_TOOLCHAIN_PREFIX is left empty. If I force this variable to the expected value (arm-eabi-), the proper tools are detected and invo

[CMake] cmake and buildvariants

2011-01-10 Thread John Beuving
I have the following software setup where I need to have build variants providing different builds for the same (sub)project -worker ( calls the Qt Processevents function if Qt is enabled for this project (#define USE_WORKER_QT) -gui app (uses Qt) -console app (normal applicatio

[CMake] Cross-compiling a static library (CMake 2.8.3)

2011-01-10 Thread Emmanuel Blot
Hello, Using the ADD_LIBRARY command for a static library (.a), how to tell CMake to use the ranlib tool for the target, not the default one for the host? I'm getting the following warning message: cd watchdog && /usr/local/Cellar/cmake/2.8.3/bin/cmake -E cmake_link_script CMakeFiles/nd_watchdog

Re: [CMake] FIND_PROGRAM w/ CMake 2.8.2 and Cygwin

2011-01-10 Thread marco atzeri
On Mon, Jan 10, 2011 at 3:43 PM, Emmanuel Blot wrote: > Hello All, > > I've just bumped into an issue with Cygwin. > > I have not compiled with CMake and Cygwin for a while, so I'm not sure > where the problem comes from (Cygwin, CMake, or the combination of > both). > > The following command used

Re: [CMake] CPack tar ownership

2011-01-10 Thread Tim St. Clair
Thanks! I think I botched my 1st verification... fakeroot gives me a root owned package, which expands correctly using tar --no-same-owner -xzf. w00t, Tim On Sat, Jan 8, 2011 at 8:22 AM, Eric Noulard wrote: > 2011/1/8 Tim St. Clair : >> This will be across several *nix platforms, >> >> I tried

[CMake] CHECK_INCLUDE_FILES ignores CMAKE_FIND_ROOT_PATH, but should it?

2011-01-10 Thread Bjørn Forsman
Hi all, I just found out that CHECK_INCLUDE_FILES ignores CMAKE_FIND_ROOT_PATH. The documentation for CHECK_INCLUDE_FILES says: ... The following variables may be set before calling this macro to modify the way the check is run: CMAKE_REQUIRED_FLAGS = string of compile command line fl

[CMake] FIND_PROGRAM w/ CMake 2.8.2 and Cygwin

2011-01-10 Thread Emmanuel Blot
Hello All, I've just bumped into an issue with Cygwin. I have not compiled with CMake and Cygwin for a while, so I'm not sure where the problem comes from (Cygwin, CMake, or the combination of both). The following command used to work on all platforms (Linux, Mac OS X, Cygwin): FIND_PROGRAM (x

[CMake] Issue with CMakeDetermineASMCompiler.cmake on 2.8.3

2011-01-10 Thread Emmanuel Blot
Hello, I'm not sure if this issue has already been reported, but ithe following command: ENABLE_LANGUAGE (ASM-ATT OPTIONAL) Triggers the following error, starting at CMake 2.8.3 (worked well up to 2.8.2): CMake Error at cmake/Modules/CMakeDetermineASMCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_

[CMake] CMake 2.8.3: find_package(Java) on HP-UX gives warning "regex not supported"

2011-01-10 Thread Gerhard Grimm
Hello there, recently I upgraded the CMake installation on our HP-UX 11.23 (IA64) system from 2.6.4 to 2.8.3. The system has HP's Java Runtime Environment installed in /opt/java6 (the environment variable JAVA_HOME is set accordingly). When calling find_package(Java REQUIRED) in a CMakeLists.tx