Re: [CMake] Override of link flag for one specific shared library

2008-09-04 Thread Martin Apel
Unfortunately this does not work. It seems that CMake generates all libraries defined in one CMakeLists.txt with the setting of CMAKE_SHARED_LINKER_FLAGS at the end of the file. This causes this setting to be applied to all libraries in the CMakeLists.txt. As I have 4 libraries in this one

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-09-04 Thread Andreas Pakulat
On 03.09.08 23:45:56, Alexander Neundorf wrote: On Wednesday 03 September 2008, Andreas Pakulat wrote: On 03.09.08 17:52:02, Alexander Neundorf wrote: On Thursday 28 August 2008, Andreas Pakulat wrote: On 28.08.08 10:16:48, BRM wrote: ... IMHO the approach to regenerate

[CMake] PROPERTIES RUNTIME_OUTPUT_DIRECTORY

2008-09-04 Thread Dave Milter
Hello. Recently I want to place all my exe files to one directory in build tree, so I used: SET(COMMON_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) SET_TARGET_PROPERTIES(myapp PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${COMMON_RUNTIME_OUTPUT_DIRECTORY}) this works fine on my linux

[CMake] cpack, nsis and visual studio 9

2008-09-04 Thread Boudewijn Rempt
Hi, We're using Qt4, Visual Studio 9 and cmake 2.6 to create binaries and cpack with the nsis installer generator to create an installer. cpack/nsis add thes following to our installer package: msvcm90.dll msvcr90.dll msvcp90.dll and a manifest file describing these files, all four files to the

Re: [CMake] cpack, nsis and visual studio 9

2008-09-04 Thread Mathieu Malaterre
Boudewihn, I cannot see the following line in your code: INCLUDE(${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake) What option did you set ? On Thu, Sep 4, 2008 at 1:54 PM, Boudewijn Rempt [EMAIL PROTECTED] wrote: Hi, We're using Qt4, Visual Studio 9 and cmake 2.6 to create

Re: [CMake] cpack, nsis and visual studio 9

2008-09-04 Thread Boudewijn Rempt
On Thu, 4 Sep 2008, Mathieu Malaterre wrote: Boudewihn, I cannot see the following line in your code: INCLUDE(${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake) What option did you set ? Er. I think that was a cut pasto: I have got it: INCLUDE(CPack)

[CMake] [Cmake] Absolute paths in .cmake, .txt files

2008-09-04 Thread Bo Huang
I observed that in .cmake, .txt, .depend, .sln, .vcproj files, paths are always absolute when generated. Is there anyway to automatically make them relative or set a global path? So far I can only change the Visual Studio paths using macros such as $(SolutionDir). I wish to do this so my

Re: [CMake] cpack, nsis and visual studio 9

2008-09-04 Thread Bill Hoffman
Boudewijn Rempt wrote: On Thu, 4 Sep 2008, Mathieu Malaterre wrote: Boudewihn, I cannot see the following line in your code: INCLUDE(${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake) What option did you set ? Er. I think that was a cut pasto: I have got it: INCLUDE(CPack)

Re: [CMake] cpack, nsis and visual studio 9

2008-09-04 Thread Boudewijn Rempt
On Thu, 4 Sep 2008, Bill Hoffman wrote: Did you install service pack 1 for Visual studio 9? Yes -- it's Visual Studio Express 9.0.30729.1 SP We have been having some trouble with that. It seems that when you compile with VS 9 it puts one manifest in your .exe, and the redist msvcm90.dll

Re: [CMake] cpack, nsis and visual studio 9

2008-09-04 Thread Bill Hoffman
Boudewijn Rempt wrote: On Thu, 4 Sep 2008, Bill Hoffman wrote: Did you install service pack 1 for Visual studio 9? Yes -- it's Visual Studio Express 9.0.30729.1 SP We have been having some trouble with that. It seems that when you compile with VS 9 it puts one manifest in your .exe, and

Re: [CMake] cpack, nsis and visual studio 9

2008-09-04 Thread Boudewijn Rempt
On Thu, 4 Sep 2008, Bill Hoffman wrote: It creates executables that embed the old version of the manifest, but ships with redist manifests that are the old (pre service pack) manifests. I wonder if you did a simple text edit on the redist manifests if it would work Maybe the .dll's are

Re: [CMake] cpack, nsis and visual studio 9

2008-09-04 Thread Bill Hoffman
Boudewijn Rempt wrote: On Thu, 4 Sep 2008, Bill Hoffman wrote: It creates executables that embed the old version of the manifest, but ships with redist manifests that are the old (pre service pack) manifests. I wonder if you did a simple text edit on the redist manifests if it would work

Re: [CMake] [Cmake] Absolute paths in .cmake, .txt files

2008-09-04 Thread Eric NOULARD
Le Thu, 4 Sep 2008 09:13:31 -0400, Bo Huang [EMAIL PROTECTED] a écrit : I observed that in .cmake, .txt, .depend, .sln, .vcproj files, paths are always absolute when generated. Is there anyway to automatically make them relative or set a global path? So far I can only change the Visual Studio

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-09-04 Thread BRM
- Original Message From: Andreas Pakulat [EMAIL PROTECTED] To: cmake@cmake.org Sent: Wednesday, September 3, 2008 3:59:08 PM Subject: Re: [CMake] Bug? Broken header files in Visual C++ 2008 project On 03.09.08 17:52:02, Alexander Neundorf wrote: On Thursday 28 August 2008,

Re: [CMake] [Cmake] Absolute paths in .cmake, .txt files

2008-09-04 Thread Bo Huang
It seems there is a ${CMAKE_CURRENT_SOURCE_DIR}) variable. Can I use this in a line such as: INCLUDE(C:/Users/BHuang/Documents/myProj/myProjSubDir/cmake_install.cmake) To make it INCLUDE(${(CMAKE_CURRENT_SOURCE_DIR})/cmake_install.cmake) If so, how I can set this variable's value? I cannot

Re: [CMake] Out-of-project link library problem

2008-09-04 Thread Andrew Sayman
On Wed, Sep 3, 2008 at 9:50 PM, Alan W. Irwin [EMAIL PROTECTED] wrote: What happens if you use a single target_link_libraries command with an overall list of libraries? That is, you use the following transformation of what you have above: My solution to the problem is actually what you've

[CMake] Copying directories and build error

2008-09-04 Thread Bo Huang
After running CMake to generate Visual Studio project files, I made a copy of C:\myProj to C:\myProjCopy In this copy, I change all references of C:\myProj to C:\myProjCopy in all .cmake, .txt, and other files. I build but get this: 1Checking Build System 1CMake is re-running

Re: [CMake] cpack, nsis and visual studio 9

2008-09-04 Thread Boudewijn Rempt
On Thu, 4 Sep 2008, Bill Hoffman wrote: Boudewijn Rempt wrote: On Thu, 4 Sep 2008, Bill Hoffman wrote: It creates executables that embed the old version of the manifest, but ships with redist manifests that are the old (pre service pack) manifests. I wonder if you did a

Re: [CMake] Copying directories and build error

2008-09-04 Thread Bill Hoffman
Bo Huang wrote: After running CMake to generate Visual Studio project files, I made a copy of C:\myProj to C:\myProjCopy In this copy, I change all references of “C:\myProj” to “C:\myProjCopy” in all .cmake, .txt, and other files. I build but get this: 1Checking Build

Re: [CMake] [Cmake] Absolute paths in .cmake, .txt files

2008-09-04 Thread Andreas Schneider
On Thursday 04 September 2008 16:31:17 Bo Huang wrote: It seems there is a ${CMAKE_CURRENT_SOURCE_DIR}) variable. Can I use this in a line such as: INCLUDE(C:/Users/BHuang/Documents/myProj/myProjSubDir/cmake_install.cmake ) To make it

Re: [CMake] Copying directories and build error

2008-09-04 Thread Andreas Schneider
On Thursday 04 September 2008 16:57:18 Bill Hoffman wrote: You don't CMake does not support the relocation of build trees. http://www.cmake.org/Wiki/CMake_FAQ#Why_does_CMake_use_full_paths.2C_or_can_I_copy_my_build_tree.3F -- andreas -- http://www.cynapses.org/ - cybernetic synapses

Re: [CMake] Copying directories and build error

2008-09-04 Thread John Drescher
On Thu, Sep 4, 2008 at 11:11 AM, Andreas Schneider [EMAIL PROTECTED] wrote: On Thursday 04 September 2008 16:57:18 Bill Hoffman wrote: You don't CMake does not support the relocation of build trees.

[CMake] [CMAKE]make uninstall

2008-09-04 Thread Micha Renner
Hallo, cmake ../src make make install all squeaky-clean but what is with make uninstall? How can I uninstall my installation? Greetings Michael ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] [CMAKE]make uninstall

2008-09-04 Thread Óscar Fuentes
Micha Renner [EMAIL PROTECTED] writes: but what is with make uninstall? How can I uninstall my installation? http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F -- Oscar ___ CMake mailing list CMake@cmake.org

Re: [CMake] [CMAKE]make uninstall

2008-09-04 Thread Alin M Elena
Hi, I remember that use to be an example somewhere on the cmake website. Until then here is an example of the uninstall ### ## uninstall target ### ###create the uninstall script set(unfile ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) file(WRITE

Re: [CMake] [CMAKE]make uninstall

2008-09-04 Thread Alexander Neundorf
On Thursday 04 September 2008, Micha Renner wrote: Hallo, cmake ../src make make install all squeaky-clean but what is with make uninstall? How can I uninstall my installation? Go to the FAQ and see the uninstall entry: http://www.cmake.org/Wiki/CMake_FAQ Alex

Re: [CMake] compiler bug turning up in cmake package?

2008-09-04 Thread Matthew Woehlke
Alexander Neundorf wrote: John Fine wrote: It is very simple and not a compiler bug, and you are correct that the error is in GetRPath. The code is if(this-Valid() this-Internal-GetFileType() == cmELF::FileTypeExecutable || this-Internal-GetFileType() ==

Re: [CMake] Copying directories and build error

2008-09-04 Thread Andreas Pakulat
On 04.09.08 11:26:45, John Drescher wrote: On Thu, Sep 4, 2008 at 11:11 AM, Andreas Schneider [EMAIL PROTECTED] wrote: On Thursday 04 September 2008 16:57:18 Bill Hoffman wrote: You don't CMake does not support the relocation of build trees.

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-09-04 Thread Hendrik Sattler
Am Donnerstag, 4. September 2008 21:50:03 schrieb Alexander Neundorf: On Thursday 04 September 2008, Andreas Pakulat wrote: On 03.09.08 23:45:56, Alexander Neundorf wrote: On Wednesday 03 September 2008, Andreas Pakulat wrote: ... Ah, yes. What would be cool would be if I could

Re: [CMake] CPack RPM update

2008-09-04 Thread Alexander Neundorf
On Tuesday 26 August 2008, Eric Noulard wrote: Hi All, I have update the CPack RPM documentation http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29 Cool :-) Alex ___ CMake mailing list CMake@cmake.org

Re: [CMake] Does FIND_PACKAGE ignore REQUIRED and QUIET in Config mode ?

2008-09-04 Thread Alexander Neundorf
On Saturday 30 August 2008, Yann Cointepas wrote: Hi, I would like to use XXX-config.cmake file (generated from a XXX-config.cmake.in) in the same way as if it was FindXXX.cmake (I want to use the search policy of Config mode). But no XXX_FIND_REQUIRED nor XXX_FIND_QUIET variables are

[CMake] KDevelop3 generator issue, Was: Bug? Broken header files in Visual C++ 2008 project

2008-09-04 Thread Alexander Neundorf
On Thursday 04 September 2008, Andreas Pakulat wrote: On 03.09.08 23:45:56, Alexander Neundorf wrote: ... projectdirectory projectmanagement absoluteprojectpath filelistdirectory buildtool builddir I changed the builddir, by renaming it. Then re-run cmake -GKDevelop3 and it didn't

Re: [CMake] custom configuration types and linking with 3rd-party libs

2008-09-04 Thread Brad King
Philip Lowman wrote: Ultimately, TARGET_LINK_LIBRARIES() works just fine the way it is with the debug/optimized keywords satisfying normal use cases. The debug/optimized keywords are in the lexicon and they aren't going anywhere. What is the harm in accepting a patch (if a user submitted

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-09-04 Thread Andreas Pakulat
On 04.09.08 21:50:03, Alexander Neundorf wrote: On Thursday 04 September 2008, Andreas Pakulat wrote: On 03.09.08 23:45:56, Alexander Neundorf wrote: On Wednesday 03 September 2008, Andreas Pakulat wrote: ... Ah, yes. What would be cool would be if I could force kdevelop to reread its

Re: [CMake] KDevelop3 generator issue, Was: Bug? Broken header files in Visual C++ 2008 project

2008-09-04 Thread Andreas Pakulat
On 04.09.08 23:41:13, Alexander Neundorf wrote: On Thursday 04 September 2008, Andreas Pakulat wrote: On 03.09.08 23:45:56, Alexander Neundorf wrote: ... projectdirectory projectmanagement absoluteprojectpath filelistdirectory buildtool builddir I changed the builddir, by

[CMake] can't get compile_definitions working quite right

2008-09-04 Thread Christopher Harvey
Hello list, I'll just start off by pasting my CMakeLists.txt, and I'll explain the problem right after. CMAKE_MINIMUM_REQUIRED(VERSION 2.6) ADD_LIBRARY(Portal SHARED BSPWorld.cc Polygon3D.cc) SET_TARGET_PROPERTIES(Portal PROPERTIES