Re: [cmake-developers] CMake master, Qt dialog and Qt4/5 installed has problems

2013-04-04 Thread Stephen Kelly
Marcus D. Hanwell wrote: Hi, I was updating my machine earlier today, and wanted to build the latest CMake master (00ef90). I am using Arch Linux with Qt 4 and Qt 5 installed. If I compile with qmake-qt4 then I see the following compile failure, [ 88%] Generating qrc_CMakeSetup.cpp

Re: [cmake-developers] CMake master, Qt dialog and Qt4/5 installed has problems

2013-04-04 Thread Stephen Kelly
Stephen Kelly wrote: Marcus D. Hanwell wrote: Hi, I was updating my machine earlier today, and wanted to build the latest CMake master (00ef90). I am using Arch Linux with Qt 4 and Qt 5 installed. If I compile with qmake-qt4 then I see the following compile failure, Please also try

Re: [cmake-developers] ninja enforces explicit dependencies before order-only

2013-04-04 Thread Peter Kümmel
On 02.04.2013 15:19, Brad King wrote: Hi Peter, We've come across a case where the Makefile, VS, and Xcode generators work but Ninja does not:: cmake_minimum_required(VERSION 2.8.10) project(DependSideEffect C) add_library(A a.c) add_custom_command( TARGET A POST_BUILD COMMAND

[cmake-developers] [CMake 0014060]: FindGLUT puts NOTFOUND in GLUT_LIBRARIES

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

Re: [cmake-developers] ninja enforces explicit dependencies before order-only

2013-04-04 Thread Brad King
On 04/04/2013 07:57 AM, Peter Kümmel wrote: On 02.04.2013 15:19, Brad King wrote: build libA.a: C_STATIC_LIBRARY_LINKER CMakeFiles/A.dir/a.c.o POST_BUILD = cd .../build cp .../a.c a.txt In build.ninja is no rule for coping a.c to a.txt at all. Seems support for

Re: [cmake-developers] Documentation 'latest' url

2013-04-04 Thread Michael Wild
On Thu, Apr 4, 2013 at 2:33 PM, Brad King brad.k...@kitware.com wrote: On 04/04/2013 12:12 AM, Michael Wild wrote: On 09/21/2012 04:36 PM, Stephen Kelly wrote: This page has links for various versions of cmake: http://www.cmake.org/cmake/help/documentation.html Would it be possible

Re: [cmake-developers] ninja enforces explicit dependencies before order-only

2013-04-04 Thread Robert Maynard
My current work in progress on this problem can be found at: https://github.com/robertmaynard/CMake/tree/ninja_phony_file_targets On Thu, Apr 4, 2013 at 8:20 AM, Brad King brad.k...@kitware.com wrote: On 04/04/2013 07:57 AM, Peter Kümmel wrote: On 02.04.2013 15:19, Brad King wrote:

[cmake-developers] [CMake 0014061]: COVERAGE_EXTRA_FLAGS not respected when coverage is run from ctest script

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

Re: [cmake-developers] CMake master, Qt dialog and Qt4/5 installed has problems

2013-04-04 Thread Marcus D. Hanwell
On Thu, Apr 4, 2013 at 6:36 AM, Stephen Kelly steve...@gmail.com wrote: Stephen Kelly wrote: Marcus D. Hanwell wrote: Hi, I was updating my machine earlier today, and wanted to build the latest CMake master (00ef90). I am using Arch Linux with Qt 4 and Qt 5 installed. If I compile with

Re: [cmake-developers] CMake master, Qt dialog and Qt4/5 installed has problems

2013-04-04 Thread Stephen Kelly
Marcus D. Hanwell wrote: My other question is - are we forcing Qt 5 when available over Qt 4 for the CMake Qt dialog? If Qt 5 is available then it is preferred, yes. Until recently, that was the only way possible. Thanks, Steve. -- Powered by www.kitware.com Visit other Kitware

[cmake-developers] [CMake 0014062]: Setting Compiler and Linker PDB to the same path in Visual Studio is unsupported.

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

Re: [CMake] Installing and Exporting for multiple configurations

2013-04-04 Thread J Decker
there is a variable that can be used... if( SUPPORTS_PARALLEL_BUILD_TYPE ) INSTALL( lib/${CMAKE_INSTALL_CONFIG_TYPE} ) would install into # used as install_mode_dest( target_names ) macro( install_mode_dest ) install( TARGETS ${ARGV} RUNTIME DESTINATION bin/\${CMAKE_INSTALL_CONFIG_NAME}

[CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Daniel Carrera
Hi all, Is it possible to ask CMake to make another make clean target that clears *all* the CMake generated files including the cache? I am a bit annoyed that the only way to clear everything is to basically run rm -rf *. Cheers, Daniel. -- Lord of the rings calendar in your Linux/Unix/Mac

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Ansis Māliņš
What would be the benefit of such a command besides syntax? -- 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/CMake_FAQ Follow this

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Eric Noulard
2013/4/4 Daniel Carrera dcarr...@gmail.com Hi all, Is it possible to ask CMake to make another make clean target that clears *all* the CMake generated files including the cache? I am a bit annoyed that the only way to clear everything is to basically run rm -rf *. You can perfectly add a

[CMake] cmake build matlab compiler runtime MCR

2013-04-04 Thread hce
Hi, Has anyone built MATLAB Compiler Runtime (MCR) using cmake and cpack for RPM package? I have built MCR using Cmake External Projects and installed the binary in an installation directory, but when I run cpack -G RPM, it got errors of missing many files in install directory. Why cpack created

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Daniel Carrera
On 4 April 2013 11:40, Ansis Māliņš ansis.mal...@gmail.com wrote: What would be the benefit of such a command besides syntax? Only a small convenience, nothing big. I am used to typing make cleann when I want to make sure that I am starting from a clean slate. I also have my shell configured so

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Daniel Carrera
On 4 April 2013 11:41, Eric Noulard eric.noul...@gmail.com wrote: You can perfectly add a custom target/command to do that, if you do out-of-source build then removing the build dir is ok. Thanks. Yes, I am doing out of source builds. Now, this would be a one-shot suicidal target since this

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Eric Noulard
2013/4/4 Daniel Carrera dcarr...@gmail.com On 4 April 2013 11:41, Eric Noulard eric.noul...@gmail.com wrote: You can perfectly add a custom target/command to do that, if you do out-of-source build then removing the build dir is ok. Thanks. Yes, I am doing out of source builds. Now, this

Re: [CMake] Redirect output from add_custom_target()

2013-04-04 Thread Micha Renner
I would try add_custom_target( ${doc_target_name} DEPENDS ${generated_conf} COMMAND ${doxygen_exe} ${generated_conf} 2 filename WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT Generating documentation using Doxygen )

Re: [CMake] Redirect output from add_custom_target()

2013-04-04 Thread Rolf Eike Beer
Micha Renner wrote: I would try add_custom_target( ${doc_target_name} DEPENDS ${generated_conf} COMMAND ${doxygen_exe} ${generated_conf} 2 filename WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT Generating documentation using

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Daniele E. Domenichelli
Hello, On 04/04/13 11:40, Ansis Māliņš wrote: Is it possible to ask CMake to make another make clean target that clears *all* the CMake generated files including the cache? I am a bit annoyed that the only way to clear everything is to basically run rm -rf *. What would be the benefit of

Re: [CMake] MinGW Link with -l instead of path?

2013-04-04 Thread Hendrik Sattler
Am 2013-04-03 17:25, schrieb J Decker: All of these articles say the way to avoid having an absolute path stored in the linked output is to use -L dir -l lib ... which is definatly not what cmake is producing.  Reflecting on this, maybe I can replace target_link_libraries with manually specified

Re: [CMake] Potential bug to set a working directory for test

2013-04-04 Thread Martin Weber
Am 27.03.2013 17:57, schrieb Klaim - Joël Lamotte: Hi, I'm using CMake 2.10.2 the VS2012(VC11) generator. I summed-up my problem in the last paragraph. I'm trying to do this: add_test( NAME ${TEST_PROJECT_NAME} WORKING_DIRECTORY ${TEST_WORKING_DIR} COMMAND ${TEST_PROJECT_NAME} )

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Eric Noulard
2013/4/4 Daniele E. Domenichelli daniele.domeniche...@gmail.com Hello, On 04/04/13 11:40, Ansis Māliņš wrote: Is it possible to ask CMake to make another make clean target that clears *all* the CMake generated files including the cache? I am a bit annoyed that the only way to clear

Re: [CMake] Potential bug to set a working directory for test

2013-04-04 Thread Klaim - Joël Lamotte
On Thu, Apr 4, 2013 at 2:53 PM, Martin Weber m.we...@razorcat.com wrote: If your binary dir resides on a different drive than E:, the generated command will not work. Remember, cd on windows does not change the drive. The generated command should be cd /D E:/projects... No all the file

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Daniele E. Domenichelli
On 04/04/13 15:34, Eric Noulard wrote: CMake cannot currently do that and it does not seem wise to ask for that feature. You may search the mailing list for this discussion topic and you'll find many answers. The only [reasonable] option is to do out-of-source build, then you know for sure

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Daniel Carrera
On 4 April 2013 12:41, Eric Noulard eric.noul...@gmail.com wrote: Yes I know. By suicidal I mean that the built tool will remove its own file (but not the CMakeLists.txt off course). I see what you mean. The Makefile is killing itself. It is committing suicide. Would it be a reasonable idea

Re: [CMake] Installing and Exporting for multiple configurations

2013-04-04 Thread Matthew Woehlke
On 2013-04-03 22:06, Saad Khattak wrote: Hi, I am trying my best to understand CMake's install and export commands so that separate projects are able to find libraries easily. I am having a tremendously hard time understand what CMake is doing. After 'add_library()' where the library is called

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Brian Milco
On Thu, Apr 4, 2013 at 6:01 AM, Daniele E. Domenichelli daniele.domeniche...@gmail.com wrote: One benefit is that it would allow to easily remove all cmake files when you wrongly run cmake in the source directory instead of in the build one. A while ago I found the attached macro online[1].

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Matthew Woehlke
On 2013-04-04 11:01, Daniel Carrera wrote: On 4 April 2013 12:41, Eric Noulard wrote: Yes I know. By suicidal I mean that the built tool will remove its own file (but not the CMakeLists.txt off course). I see what you mean. The Makefile is killing itself. It is committing suicide. Would it

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Matthew Woehlke
On 2013-04-04 06:30, Daniel Carrera wrote: On 4 April 2013 11:40, Ansis Māliņš wrote: What would be the benefit of such a command besides syntax? Only a small convenience, nothing big. I am used to typing make cleann when I want to make sure that I am starting from a clean slate. I also have

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Daniel Carrera
On 4 April 2013 17:32, Matthew Woehlke matthew.woeh...@kitware.com wrote: cd .. rm -rf build mkdir build cd build ...? ;-) (If your build directories tend to be in the same place, you could easily write a shell function to do this, to save typing.) Done. I should have thought of that.

Re: [CMake] Redirect output from add_custom_target()

2013-04-04 Thread Robert Dailey
I guess there's no way to make this work without adding a new option to add_custom_target()? On Thu, Apr 4, 2013 at 7:26 AM, Rolf Eike Beer e...@sf-mail.de wrote: Micha Renner wrote: I would try add_custom_target( ${doc_target_name} DEPENDS ${generated_conf}

Re: [CMake] Redirect output from add_custom_target()

2013-04-04 Thread David Cole
Write a script and redirect from inside the script? On Apr 4, 2013, at 12:07 PM, Robert Dailey rcdailey.li...@gmail.com wrote: I guess there's no way to make this work without adding a new option to add_custom_target()? On Thu, Apr 4, 2013 at 7:26 AM, Rolf Eike Beer e...@sf-mail.de wrote:

Re: [CMake] CMakeModules repository at GitHub?

2013-04-04 Thread Alexander Neundorf
On Thursday 28 March 2013, Mateusz Loskot wrote: Hi, To CMake maintainers, what do you think about creating new repository at https://github.com/Kitware/CMakeModules as incubator for contributed CMake modules? we are in the process of setting such a package up within KDE, but with

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Andreas Stahl
Am 04.04.2013 um 17:31 schrieb Brian Milco: On Thu, Apr 4, 2013 at 6:01 AM, Daniele E. Domenichelli daniele.domeniche...@gmail.com wrote: One benefit is that it would allow to easily remove all cmake files when you wrongly run cmake in the source directory instead of in the build one.

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Jean-Christophe Fillion-Robin
Consider looking at the implementation of PreventInSourceBuilds.cmake in ITK See https://github.com/Kitware/ITK/blob/master/CMake/PreventInSourceBuilds.cmake May it could be generalized and integrated in CMake itself ? Jc On Thu, Apr 4, 2013 at 12:49 PM, Andreas Stahl

Re: [CMake] MinGW Link with -l instead of path?

2013-04-04 Thread J Decker
On Wed, Apr 3, 2013 at 9:12 AM, J Decker d3c...@gmail.com wrote: alternate target_link_libraries. Usage is the same. Test if each library to link is a target, get that targets path, and break it into parts and add it to LINK_FLAGS else add with target_link_libraries...

Re: [CMake] CMakeModules repository at GitHub?

2013-04-04 Thread Mateusz Loskot
On 4 April 2013 17:44, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 28 March 2013, Mateusz Loskot wrote: To CMake maintainers, what do you think about creating new repository at https://github.com/Kitware/CMakeModules as incubator for contributed CMake modules? we are in

Re: [CMake] CMakeModules repository at GitHub?

2013-04-04 Thread Alexander Neundorf
On Thursday 04 April 2013, Mateusz Loskot wrote: On 4 April 2013 17:44, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 28 March 2013, Mateusz Loskot wrote: To CMake maintainers, what do you think about creating new repository at https://github.com/Kitware/CMakeModules

Re: [CMake] Installing and Exporting for multiple configurations

2013-04-04 Thread Saad Khattak
Thanks for the solution. I will try this but perhaps you are right and I should instead go with different builds for each configuration. On Thu, Apr 4, 2013 at 3:54 AM, J Decker d3c...@gmail.com wrote: there is a variable that can be used... if( SUPPORTS_PARALLEL_BUILD_TYPE ) INSTALL(

Re: [CMake] Explanation of the CMake INSTALL and EXPORT Commands

2013-04-04 Thread Saad Khattak
Thanks for the very valuable info Matthew. If Project A is installed (to a standard location), then it is available system wide, yes. However you should still use find_package(A) rather than relying on e.g. target_link_libraries(B A) I tried to use find_package(A) but CMake would display a

Re: [CMake] make superclean target? (i.e. clear *everything*)

2013-04-04 Thread Eric Noulard
2013/4/4 Jean-Christophe Fillion-Robin jchris.filli...@kitware.com Consider looking at the implementation of PreventInSourceBuilds.cmake in ITK See https://github.com/Kitware/ITK/blob/master/CMake/PreventInSourceBuilds.cmake May it could be generalized and integrated in CMake itself ? Yes

Re: [CMake] CMakeModules repository at GitHub?

2013-04-04 Thread Mateusz Loskot
On 4 April 2013 20:14, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 04 April 2013, Mateusz Loskot wrote: On 4 April 2013 17:44, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 28 March 2013, Mateusz Loskot wrote: To CMake maintainers, what do you think about

Re: [CMake] Installing and Exporting for multiple configurations

2013-04-04 Thread J Decker
Also, you should install to 'lib${LIB_SUFFIX}', not 'lib'. This will allow you (and distros packaging your software) to set LIB_SUFFIX to separate arch-specific components of 32- and 64-bit builds. E.g. on Linux, lib_suffix is usually ''/'64' or '32'/'', and on Windows might be ''/'/amd64'.

Re: [CMake] Installing and Exporting for multiple configurations

2013-04-04 Thread Matthew Woehlke
On 2013-04-04 17:04, J Decker wrote: Also, you should install to 'lib${LIB_SUFFIX}', not 'lib'. This will allow you (and distros packaging your software) to set LIB_SUFFIX to separate arch-specific components of 32- and 64-bit builds. E.g. on Linux, lib_suffix is usually ''/'64' or '32'/'', and

Re: [CMake] Installing and Exporting for multiple configurations

2013-04-04 Thread J Decker
On Thu, Apr 4, 2013 at 2:25 PM, Matthew Woehlke matthew.woeh...@kitware.com wrote: On 2013-04-04 17:04, J Decker wrote: Also, you should install to 'lib${LIB_SUFFIX}', not 'lib'. This will allow you (and distros packaging your software) to set LIB_SUFFIX to separate arch-specific components

[CMake] Is it a bug that cmake / cpack could not handle directory name with @?

2013-04-04 Thread hce
Hi, I have a binary directory contains subdirectories name with @: graph3d/@graph3d/@colorbar/colorbar.m scribe/@scribe/@colorbar/colorbar.m When I run cpack -G RPM, it removed @ and put following string name in the spec: graph3d/graph3d/colorbar/colorbar.m scribe/scribe/colorbar/colorbar.m

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2713-g4a199d3

2013-04-04 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 4a199d36e8b849fc22423eaa2690cd7c4529a687 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.10.2-978-g9cccd2c

2013-04-04 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 9cccd2c29cccaa480f6b16bdd96b2621b6544baf (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2716-gaa0cf95

2013-04-04 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 aa0cf95184b97a747e3595df7a5c671a84599149 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.10.2-979-g2d88085

2013-04-04 Thread Kitware Robot
Stamp diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake index c6afdb5..427853f 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 20130404