[cmake-developers] Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread Stephen Kelly
Hi, A new Qt CI machine machine is hitting problems with the CMake unit tests: http://thread.gmane.org/gmane.comp.lib.qt.devel/10746 Any idea what the problem could be there? Thanks, Steve -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [cmake-developers] Suggestion: CMAKE_TOOLCHAIN_FILE warning improvement

2013-04-10 Thread Stephen Kelly
Laszlo Papp wrote: Hi, Just found this post from Brad: http://www.cmake.org/pipermail/cmake/2011-February/042556.html I would suggest to improve the warning message. It is not exactly clear why that happens to a user like me. My colleague saw this warning in his cmake output when he was

[cmake-developers] Re: Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread David Cole
You’re building a 32-bit CMake and trying to link it to a 64-bit Qt. Why do you expect that should work? From: Stephen Kelly Sent: ‎Wednesday‎, ‎April‎ ‎10‎, ‎2013 ‎4‎:‎03‎ ‎AM To: cmake-developers@cmake.org Hi, A new Qt CI machine machine is hitting problems with the CMake unit tests:

Re: [cmake-developers] Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread Stephen Kelly
On 04/10/2013 01:29 PM, David Cole wrote: You’re building a 32-bit CMake and trying to link it to a 64-bit Qt. Why do you expect that should work? I'm not trying build CMake and I'm not trying to link CMake to Qt. The Qt CI machines download CMake from

Re: [cmake-developers] Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread Stephen Kelly
Eric Noulard wrote: I don't know anything about building on Windows, so that might indeed be the problem. Can you confirm that it's not a misunderstanding? In http://thread.gmane.org/gmane.comp.lib.qt.devel/10746 we can read: 3-- Build started: Project: axserverapp, Configuration:

Re: [cmake-developers] Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread Stephen Kelly
Stephen Kelly wrote: So, how is the target 32bit/64bit determined? An option to cmake at cmake time? It seems to be determined by the generator: http://stackoverflow.com/questions/3785976/cmake-generate-visual-studio-2008-solution-for-win32-and-x64 I'll figure out a way to determine that

Re: [cmake-developers] Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread Eric Noulard
2013/4/10 Stephen Kelly steve...@gmail.com Stephen Kelly wrote: So, how is the target 32bit/64bit determined? An option to cmake at cmake time? It seems to be determined by the generator:

Re: [cmake-developers] Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread clinton
- Original Message - Eric Noulard wrote: I don't know anything about building on Windows, so that might indeed be the problem. Can you confirm that it's not a misunderstanding? In http://thread.gmane.org/gmane.comp.lib.qt.devel/10746 we can read: 3-- Build started:

Re: [cmake-developers] Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread Stephen Kelly
clin...@elemtech.com wrote: It appears it needs more logic to handle the CMAKE_GENERATOR variable. If a visual studio generator is going to be used, then it'll probably need logic to determine which version of visual studio it is to choose the correct visual studio generator (because of

Re: [cmake-developers] Suggestion: CMAKE_TOOLCHAIN_FILE warning improvement

2013-04-10 Thread Brad King
On 04/10/2013 07:20 AM, Stephen Kelly wrote: Is there any reason this variable shouldn't be special-cased in the unused variable handling? If the special case is spelled correctly, it should be fine. If you want to add a whitelist to suppress the warning that's fine with me. -Brad --

Re: [cmake-developers] Suggestion: CMAKE_TOOLCHAIN_FILE warning improvement

2013-04-10 Thread Rolf Eike Beer
Am 10.04.2013 16:17, schrieb Brad King: On 04/10/2013 07:20 AM, Stephen Kelly wrote: Is there any reason this variable shouldn't be special-cased in the unused variable handling? If the special case is spelled correctly, it should be fine. If you want to add a whitelist to suppress the

Re: [cmake-developers] Suggestion: CMAKE_TOOLCHAIN_FILE warning improvement

2013-04-10 Thread Brad King
On 04/10/2013 10:30 AM, Rolf Eike Beer wrote: I think what Stephen had in mind (I really hope he had *g*) is to show a different warning in that case, telling the user that the toolchain file is ignored on any subsequent run. Another approach is to not warn when the -DFOO=bar option just

[cmake-developers] [CMake 0014070]: CMake with Visual Studio 2012 broken

2013-04-10 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=14070 == Reported By:Jarle Aase Assigned To:

[cmake-developers] CMake crashes on removing INCLUDE_DIRECTORIES property

2013-04-10 Thread Brad King
Steve, Since this commit: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=18a3195a CMake crashes on the code set_property(DIRECTORY PROPERTY INCLUDE_DIRECTORIES) because code like this-IncludeDirectoriesEntries.push_back( cmValueWithOrigin(value, lfbt));

Re: [cmake-developers] Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread Bill Hoffman
On 4/10/2013 11:54 AM, Stephen Kelly wrote: (at the very bottom) http://testresults.qt-project.org/ci/QtBase_stable_Integration/build_00894/win64-msvc2012_developer-build_qtnamespace_Windows_8/log.txt.gz Any ideas? I think you want this generator: Visual Studio 11 Win64 -- Check for working C

Re: [cmake-developers] Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread Stephen Kelly
Bill Hoffman wrote: On 4/10/2013 11:54 AM, Stephen Kelly wrote: (at the very bottom) http://testresults.qt-project.org/ci/QtBase_stable_Integration/build_00894/win64-msvc2012_developer-build_qtnamespace_Windows_8/log.txt.gz Any ideas? I think you want this generator: Visual Studio 11

Re: [cmake-developers] Qt builds: module machine type 'x64' conflicts with target machine type 'X86'

2013-04-10 Thread Bill Hoffman
On 4/10/2013 12:22 PM, Stephen Kelly wrote: Yes, I think you're right. I've updated the patch with that information now. Seems a bit unstable to hard code the version. I wonder if you can detect the one that is being used somehow? -Bill -- Powered by www.kitware.com Visit other Kitware

Re: [cmake-developers] Suggestion: CMAKE_TOOLCHAIN_FILE warning improvement

2013-04-10 Thread Rolf Eike Beer
Brad King wrote: On 04/10/2013 10:30 AM, Rolf Eike Beer wrote: I think what Stephen had in mind (I really hope he had *g*) is to show a different warning in that case, telling the user that the toolchain file is ignored on any subsequent run. Another approach is to not warn when the

[cmake-developers] Determining version and arch for Visual Studio generators.

2013-04-10 Thread Stephen Kelly
Bill Hoffman wrote: Seems a bit unstable to hard code the version. I wonder if you can detect the one that is being used somehow? I don't think it's unstable, but I do think the version and arch should be detected somehow. Would it be possible for cmake to run devenv to check the version

Re: [cmake-developers] Determining version and arch for Visual Studio generators.

2013-04-10 Thread Stephen Kelly
Stephen Kelly wrote: Bill Hoffman wrote: Seems a bit unstable to hard code the version. I wonder if you can detect the one that is being used somehow? I don't think it's unstable, but I do think the version and arch should be detected somehow. Would it be possible for cmake to run

Re: [cmake-developers] Determining version and arch for Visual Studio generators.

2013-04-10 Thread Bill Hoffman
On 4/10/2013 4:45 PM, Stephen Kelly wrote: I don't think it's unstable, but I do think the version and arch should be detected somehow. I take it back. It is not hard coded. It is just matching qt win32-msvc2010, win32-msvc2012 with the correct CMake generator:

Re: [cmake-developers] Determining version and arch for Visual Studio generators.

2013-04-10 Thread Stephen Kelly
Bill Hoffman wrote: What about VS 9, seems to be missing? The Qt CI system only tests 2010 and 2012: http://testresults.qt-project.org/ci/QtBase_dev_Integration/latest-success/ The wince70embedded-armv4i-msvc2008_Windows_7 build is currently failing for other reasons, but it's a

[cmake-developers] [CMake 0014073]: VS2010 / VS2012 - Improper escape of semicolon in compile definition

2013-04-10 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://cmake.org/Bug/view.php?id=14073 == Reported By:Jean-Christophe Fillion-Robin Assigned To:

[cmake-developers] Building with Qt for the Raspberry Pi with CMake

2013-04-10 Thread Stephen Kelly
Hi, This is mostly just feedback on some experience with cross-compiling. As part of trying to figure out to what extent Qt 5 needs to be patched to solve the kind of issue raised in http://public.kitware.com/Bug/view.php?id=14041 and fixed in 6c613b433c45efb0bb013a6bd668cbb8ac740259, I've

Re: [CMake] INSTALL_INTERFACE question

2013-04-10 Thread Stephen Kelly
clin...@elemtech.com wrote: I'm playing with some of the new cmake 2.8.11 features and an example I saw had this: set_property(TARGET foo PROPERTY INTERFACE_INCLUDE_DIRECTORIES $BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}; ${CMAKE_CURRENT_SOURCE_DIR}

Re: [CMake] INSTALL_INTERFACE question

2013-04-10 Thread Stephen Kelly
Stephen Kelly wrote: Where did you see the example above? In an old commit message? It doesn't seem to be in the code: Ah, I found and fixed it on the wiki page: http://community.kde.org/Frameworks/Epics/CMake_target_usage_requirements Thanks, Steve. -- Powered by www.kitware.com

Re: [CMake] INSTALL_INTERFACE question

2013-04-10 Thread clin...@elemtech.com
Yeah, that's it. Thanks. That page was referenced by a recent kitware blog. http://www.kitware.com/blog/home/post/462 Clint - Reply message - From: Stephen Kelly steve...@gmail.com Date: Wed, Apr 10, 2013 1:08 am Subject: [CMake] INSTALL_INTERFACE question To: cmake@cmake.org

[CMake] Disable creation of uninstall link in windows start menu (CMAKE + CPACK + NSIS)

2013-04-10 Thread Hagen Mölle
Hi, I like to disable the creation of the uninstall link in the windows start menu when using the NSIS generator in combination with CMAKE and CPACK. When executing the generated NSIS installer using the standard configuration of CPACK the uninstall link is automatically added to the

Re: [CMake] CTest / CDash integration

2013-04-10 Thread Martin Baute
Sorry, but I have to keep complaining about the documentation. Please excuse the ranting. Just one example from the manual: ctest --build-options: Add extra options to the build step. This option must be the last option with the exception of --test-command End of available information.

[CMake] Ralph Barth/AEH/DBS/GDB ist außer Haus. Original subject: 'CMake Digest, Vol 108, Issue 29'

2013-04-10 Thread Ralph . Barth
Ralph Barth will be out of the office starting 10.04.2013 and will be returning on 11.04.2013. Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten. WLLM related questions pls. contact Sebastian Neusüß and Jens Keil. Theo Price Feed from EDRE pls contact Jens Keil

Re: [CMake] CTest / CDash integration

2013-04-10 Thread Johannes Zarl
Probably someone else can give you a better answer, but I ended up doing the following: ctest \ --build-and-test $SOURCE_DIR $BUILD_DIR \ --build-generator Unix Makefiles --build-makeprogram make \ -j $PARALLEL_JOBS \ --build-options -DCMAKE_CXX_COMPILER=$CXX -DCMAKE_C_COMPILER=$CC \

Re: [CMake] CTest / CDash integration

2013-04-10 Thread David Cole
ctest has long been quite under-documented There are some open issues in the bug tracker: http://public.kitware.com/Bug/view.php?id=10392 http://public.kitware.com/Bug/view.php?id=13836 What's needed is someone to go in and do the work to document it well. Until that happens, your best

Re: [CMake] COMPONENTS for export files

2013-04-10 Thread Alexander Neundorf
On Wednesday 10 April 2013, Nico Schlömer wrote: Sounds pretty good! One question remains: Suppose I have components A, B, C, where both A and B depend on C. The link line that I'd pull in with FIND_PACKAGE(Mypackage COMPONENTS A B) Would be A libs, C libs, B libs, C libs where all

[CMake] nested replacement with @@

2013-04-10 Thread Nico Schlömer
Hi all, in a ProjectContfigTemplate.cmake.in file, I'd like to have variables such as ${${PROJECT_NAME}_VERSION}. In ${}-syntax, the nesting is recognized properly, and this string would be replaced by, e.g., 2.1. I know need to have ${}-variables in the output file, so I tried to switch to the

Re: [CMake] nested replacement with @@

2013-04-10 Thread Eric Noulard
2013/4/10 Nico Schlömer nico.schloe...@gmail.com Hi all, in a ProjectContfigTemplate.cmake.in file, I'd like to have variables such as ${${PROJECT_NAME}_VERSION}. In ${}-syntax, the nesting is recognized properly, and this string would be replaced by, e.g., 2.1. I know need to have

Re: [CMake] nested replacement with @@

2013-04-10 Thread Eric Noulard
2013/4/10 Eric Noulard eric.noul...@gmail.com 2013/4/10 Nico Schlömer nico.schloe...@gmail.com Replacing the above line by @@PROJECT_NAME@_VERSION@ doesn't work however: The output file contains @Myproject_VERSION@ i.e., only the inner variable was replaced. How to fix this? May

Re: [CMake] nested replacement with @@

2013-04-10 Thread Eric Clark
Nico, I had this same problem at one point in time, but was able to change it to the ${...} syntax which works beautifully. I know that you cannot use this syntax, but I will tell you that I did find a work-around for the nested @...@ syntax. The workaround is to run configure_file on the file

Re: [CMake] nested replacement with @@

2013-04-10 Thread Clinton Stimpson
Another workaround is to make an intermediate variable in the CMakeLists.txt file and use this intermediate variable from the .in file. That elminates the nested @@'s. Clint On Wednesday, April 10, 2013 07:51:03 PM Eric Clark wrote: Nico, I had this same problem at one point in time, but

[CMake] clear compile flags for a file

2013-04-10 Thread Ian Monroe
So I have the same problem as the person in this old thread: http://www.cmake.org/pipermail/cmake/2009-August/031671.html I want to add some compile flags (currently using add_definitions) but they mess up the rc.exe resource compiler. Doing something like: set_source_files_properties(hipchat.rc

Re: [CMake] clear compile flags for a file

2013-04-10 Thread Ian Monroe
On Wed, Apr 10, 2013 at 1:37 PM, Ian Monroe i...@monroe.nu wrote: So I have the same problem as the person in this old thread: http://www.cmake.org/pipermail/cmake/2009-August/031671.html I want to add some compile flags (currently using add_definitions) but they mess up the rc.exe resource

[CMake] Discovering ExternalProject library dependencies?

2013-04-10 Thread John Gallagher
Hello, Is there a convenient way to have CMake detect at build time additional libraries that need to be linked for an external project to work? For example, suppose I have ExternalProject_Add(Foo ...args...) which builds libfoo.a (which is an autotools package). Depending on the system on

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2746-g98f389e

2013-04-10 Thread Stephen Kelly
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 98f389eb19d3f56de0c8d68d50be7a3be6a3577a (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.10.2-985-g6bfa3d8

2013-04-10 Thread Kitware Robot
Stamp diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index 7b07228..c4c987d 100644 --- a/Source/CMakeVersion.cmake +++ b/Source/CMakeVersion.cmake @@ -2,5 +2,5 @@ set(CMake_VERSION_MAJOR 2) set(CMake_VERSION_MINOR 8) set(CMake_VERSION_PATCH 10) -set(CMake_VERSION_TWEAK 20130410