Re: [cmake-developers] rpaths on Mac

2011-11-18 Thread Clinton Stimpson
On Friday, November 18, 2011 04:59:36 am David Cole wrote: On Thu, Nov 17, 2011 at 5:26 PM, Clinton Stimpson clin...@elemtech.com wrote: On Thursday, November 17, 2011 02:03:15 pm Brad King wrote: On 11/17/2011 11:49 AM, Clinton Stimpson wrote: I'm experimenting with using @rpath instead

[cmake-developers] [PATCH] fix matching output of bison --version

2011-11-18 Thread Rolf Eike Beer
This patch against next (because the offending patch is not in master yet) fixes one cause of the valgrind warnings Bill reported recently. It doesn't fix the C++ code, it only fixes the module that accidentially spotted this by a bug in itself. EikeFrom

Re: [cmake-developers] [PATCH] fix matching output of bison --version

2011-11-18 Thread David Cole
Thanks. Applied and pushed to 'next': http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=20cb5edbcaaf89c35638911c27e6aec1c7fc022f On Fri, Nov 18, 2011 at 10:18 AM, Rolf Eike Beer e...@sf-mail.de wrote: This patch against next (because the offending patch is not in master yet) fixes one

[cmake-developers] VS 2010/MSbuild's custom build tool issues and a proposal

2011-11-18 Thread James Bigler
I make heavy use of the add_custom_command feature for compiling CUDA code with FindCUDA.cmake. Lately when doing more and more developement with VS 2010, I've experiences several issues with the Custom Build Tool as implemented by MSbuild. I've filed three bugs with Microsoft, and all but one

Re: [CMake] Problems with CPack/NSIS and CPACK_NSIS_MUI_FINISHPAGE_RUN

2011-11-18 Thread David Cole
If you want to run an executable in the MyProject directory instead of the bin directory, then set: set(CPACK_NSIS_EXECUTABLES_DIRECTORY MyProject) If you want to run one in the root installation directory, set: set(CPACK_NSIS_EXECUTABLES_DIRECTORY .) So I still assert that the bug is

Re: [CMake] Problems with CPack/NSIS and CPACK_NSIS_MUI_FINISHPAGE_RUN

2011-11-18 Thread David Cole
This commit shows the code that fixed the bug, and led me to the docs for that variable: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bee514c3611f7a7b972d9ade14f94c0f25bc001e On Fri, Nov 18, 2011 at 7:04 AM, David Cole david.c...@kitware.com wrote: If you want to run an executable in

Re: [CMake] Problems with CPack/NSIS and CPACK_NSIS_MUI_FINISHPAGE_RUN

2011-11-18 Thread David Cole
Actually, that commit just led me to a usage of that variable. The docs were added later. On Fri, Nov 18, 2011 at 7:06 AM, David Cole david.c...@kitware.com wrote: This commit shows the code that fixed the bug, and led me to the docs for that variable:  

Re: [CMake] One project, one platform, 2 compilers

2011-11-18 Thread Michael Hertling
On 11/17/2011 05:18 PM, Paul Hansen wrote: Hi I have a project that has to be compiled with two different compilers on the same computer. Can I do that from the same CMakeLists.txt file? What do you mean exactly? (1) Compile the project twice, each time completely with a different

Re: [CMake] TCL modules

2011-11-18 Thread Michael Hertling
On 11/17/2011 05:53 PM, Joe Brandt wrote: I totally agree with your #2. I was thinking that it would be easier to try and update the existing ones, rather than create new ones, at least from the perspective of getting something done more quickly. The main issue with that is that a new

Re: [CMake] TCL modules

2011-11-18 Thread Joe Brandt
I posted a patch showing what I did, but it is waiting on the moderators due to it just barely being over the size limit. In a nutshell though. Once a version is specified I would build a variable for the NAME part of the find_* functions that would force the filename with version first in the

Re: [CMake] Problems with CPack/NSIS and CPACK_NSIS_MUI_FINISHPAGE_RUN

2011-11-18 Thread norulez
Thanks, set(CPACK_NSIS_EXECUTABLES_DIRECTORY .) This solves the problem. Best Regards Am 18.11.2011 um 13:08 schrieb David Cole david.c...@kitware.com: set(CPACK_NSIS_EXECUTABLES_DIRECTORY .) -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Install command incorrectly installing archive libraries

2011-11-18 Thread Stephen Torri
Using the single command will place the release libraries into the lib/release directory when using the -C Release flag with CPack. If I do -C Debug flag with CPack then the PDB files are installed to lib/debug but the libraries are installed to lib/release. Any reason why this single command

Re: [CMake] One project, one platform, 2 compilers

2011-11-18 Thread Paul Hansen
Thank you very much for the answers, David and Michael. I am trying to get a QNX compiler to work with CMake. My host comp runs Ubuntu. I did: cmake -G Unix Makefiles -D CMAKE_C_COMPILER=qcc -D CMAKE_CXX_COMPILER=QCC .. but get dpkg-architecture: warning: Couldn't determine gcc system type,

Re: [CMake] [RFC] How to use pkg-config under Windows (... and OSX)?

2011-11-18 Thread Alexander Neundorf
On Friday 18 November 2011, Alan W. Irwin wrote: On 2011-11-17 21:43+0100 Hendrik Sattler wrote: Am Donnerstag, 17. November 2011, 21:38:20 schrieb Hendrik Sattler: Am Donnerstag, 17. November 2011, 18:26:08 schrieb Alexander Neundorf: Let's say package Foo (unrelated to KDE, and unrelated

[CMake] Transitive linking

2011-11-18 Thread James Bigler
I thought CMake knew how to not drag all the dependent libraries once you linked an executable module. add_library(A STATIC a.cpp) add_library(B SHARED b.cpp) target_link_libraries(B A) add_library(C SHARED c.cpp) target_link_libraries(C B) add_executable(run run.cpp) target_link_libraries(run

Re: [CMake] Transitive linking

2011-11-18 Thread Alexander Neundorf
On Friday 18 November 2011, James Bigler wrote: I thought CMake knew how to not drag all the dependent libraries once you linked an executable module. add_library(A STATIC a.cpp) add_library(B SHARED b.cpp) target_link_libraries(B A) add_library(C SHARED c.cpp) target_link_libraries(C B)

Re: [CMake] Transitive linking

2011-11-18 Thread James Bigler
2011/11/18 Alexander Neundorf a.neundorf-w...@gmx.net On Friday 18 November 2011, James Bigler wrote: I thought CMake knew how to not drag all the dependent libraries once you linked an executable module. add_library(A STATIC a.cpp) add_library(B SHARED b.cpp) target_link_libraries(B

Re: [CMake] Install command incorrectly installing archive libraries

2011-11-18 Thread Michael Wild
Sorry, I misread the documentation myself. You need multiple install() commands, for each configuration one, but after each DESTINATION option you also need the COMPONENTS option. So, this would be something like this: install(TARGETS first ARCHIVE DESTINATION lib/release CONFIGURATIONS Release

Re: [CMake] [RFC] How to use pkg-config under Windows (... and OSX)?

2011-11-18 Thread Patrick Spendrin
Am 18.11.2011 02:02, schrieb Alan W. Irwin: Alex, is it possible your KDE Windows developers who are objecting to pkg-config tried a version from years ago when it did not have all these Windows issues sorted out? I suggest you tell them to investigate again using modern pkg-config. For

Re: [CMake] [RFC] How to use pkg-config under Windows (... and OSX)?

2011-11-18 Thread Pedro Lopez-Cabanillas
On Friday 18 November 2011, Alan W. Irwin wrote: On 2011-11-17 21:43+0100 Hendrik Sattler wrote: Am Donnerstag, 17. November 2011, 21:38:20 schrieb Hendrik Sattler: Am Donnerstag, 17. November 2011, 18:26:08 schrieb Alexander Neundorf: Let's say package Foo (unrelated to KDE, and unrelated

[CMake] VC2010 Express + CMake = fails

2011-11-18 Thread Robert Dailey
When I try to configure my project in CMake 2.8.6 using VC 2010 Express, I get the following error. Any reason why? Check for working C compiler using: Visual Studio 10 Check for working C compiler using: Visual Studio 10 -- broken CMake Error at C:/Program Files (x86)/CMake

Re: [CMake] VC2010 Express + CMake = fails

2011-11-18 Thread Robert Dailey
Well since this is VC Express, I don't have a devenv.com file in my Common7 folder, so I guess that explains it? Shouldn't CMake support VC2010 express? - Robert Dailey On Fri, Nov 18, 2011 at 5:10 PM, Robert Dailey rcdai...@gmail.com wrote: When I try to configure my project in

Re: [CMake] Transitive linking

2011-11-18 Thread Michael Hertling
On 11/18/2011 10:03 PM, James Bigler wrote: 2011/11/18 Alexander Neundorf a.neundorf-w...@gmx.net On Friday 18 November 2011, James Bigler wrote: I thought CMake knew how to not drag all the dependent libraries once you linked an executable module. add_library(A STATIC a.cpp)

Re: [CMake] VC2010 Express + CMake = fails

2011-11-18 Thread Bill Hoffman
On 11/18/2011 6:10 PM, Robert Dailey wrote: Run Build Command:C:\PROGRA~2\MICROS~2.NET http://2.NET\Common7\IDE\devenv.com http://devenv.com CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec Microsoft (R) Development Environment Version 7.10.6030. Looks like it is running VS 7,

Re: [CMake] Install command incorrectly installing archive libraries

2011-11-18 Thread Stephen Torri
On Fri, 2011-11-18 at 22:49 +0100, Michael Wild wrote: Sorry, I misread the documentation myself. You need multiple install() commands, for each configuration one, but after each DESTINATION option you also need the COMPONENTS option. So, this would be something like this: install(TARGETS

Re: [CMake] VC2010 Express + CMake = fails

2011-11-18 Thread Bill Hoffman
On 11/18/2011 6:58 PM, Robert Dailey wrote: Well since this is VC Express, I don't have a devenv.com http://devenv.com file in my Common7 folder, so I guess that explains it? Shouldn't CMake support VC2010 express? - It does, it is just confused because you have two compilers... See

[Cmake-commits] CMake branch, master, updated. v2.8.6-214-g8e1bbee

2011-11-18 Thread KWSys Robot
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 8e1bbee4d948025dfb1888e0a8b0365d7bd360c8 (commit) from

[Cmake-commits] CMake branch, next, updated. v2.8.6-1945-g2dbaad5

2011-11-18 Thread David Cole
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 2dbaad551aa9bb41b8a6e8f166a4ec1f4ee788e9 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.6-1949-g75b9d46

2011-11-18 Thread Alexander Neundorf
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 75b9d46db36db77a3ff58dcaeaad08de78091e84 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.6-1954-g155bd0c

2011-11-18 Thread David Cole
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 155bd0c36fb8433aaa7ee767133bcad38a01425c (commit) via