[cmake-developers] [CMake 0012622]: Unable To Find Freetype On Windows

2011-12-13 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12622 == Reported By:Ryan H. Kawicki Assigned To:

[cmake-developers] [CMake 0012625]: FindLAPACK does not find pthreads with MKL

2011-12-13 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12625 == Reported By:tgallagher Assigned To:

Re: [cmake-developers] Adding macro cmake_print_variables(var1 var2 ... varN) ?

2011-12-13 Thread Alexander Neundorf
On Sunday 11 December 2011, Alexander Neundorf wrote: Hi, I have a small macro/function which I need often during buildsystem debugging: function(PRINT_VARIABLES) set(msg ) foreach(var ${ARGN}) if(msg) set(msg ${msg} ; ) endif() set(msg

Re: [cmake-developers] Adding macro cmake_print_variables(var1 var2 ... varN) ?

2011-12-13 Thread Eric Noulard
2011/12/11 Eric Noulard eric.noul...@gmail.com: List was dropped intentionally Just realized I wrote the opposite of what I meant ... -- Forwarded message -- From: Eric Noulard eric.noul...@gmail.com Date: 2011/12/11 Subject: Re: [cmake-developers] Adding macro

Re: [cmake-developers] Adding macro cmake_print_variables(var1 var2 ... varN) ?

2011-12-13 Thread Brad King
On 12/13/2011 3:34 PM, Alexander Neundorf wrote: So, ok to add ? The macro is so simple it can easily be included in any project that needs it. People will want different formats and custom behavior. I don't think it belongs upstream. -Brad -- Powered by www.kitware.com Visit other Kitware

[cmake-developers] [PATCH] Remove the apparently outdated README in Source/QtDialog.

2011-12-13 Thread Raphael Kubo da Costa
Qt has been LGPL-licensed for a few years, so the clause mentioning only developers with a paid Qt license can change the code seems to be outdated. --- Source/QtDialog/README |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) delete mode 100644 Source/QtDialog/README diff --git

[cmake-developers] [PATCH] QtDialog: Set Ctrl+Q as the shortcut for quitting the program.

2011-12-13 Thread Raphael Kubo da Costa
QKeySequence::Quit does not work on all platforms, and since it translates to Ctrl+Q on all platforms where it does work, Ctrl+Q was hardcoded instead. --- Source/QtDialog/CMakeSetupDialog.cxx |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

Re: [CMake] target dependency in subdirectory not found

2011-12-13 Thread Michael Hertling
On 12/12/2011 08:42 PM, Jos van den Oever wrote: I'm trying to get get CMake to do the equivalent from this Makefile. I'm using cp in this simple example, but want to use different commands in my project. ==Makefile== srcdir=.. hij: a/efg cp a/efg hij a/efg: $(srcdir)/a/abc

Re: [CMake] Top level target depending on a file

2011-12-13 Thread Alexander Broekhuis
Hi, The only issue would be that you have to call (i.e. build) the new custom target explicitely instead of relying on POST BUILD. I had hoped it would be as simple as adding a DEPENDS to the custom target, or something similar. Note that may be I didn't catch your usage so may be you can

[CMake] Problem linking boost program_options with Visual Studio 2008

2011-12-13 Thread Mario Pezzoni
Hi all, i have a project in c++ that needs program_options library from boost, i use FindBoost to set include dirs and linking stuff. Compiling and linking works flawlessly under linux. With the visual studio project compiling go well but linking fails with this error message: 1pro_cli.obj :

[CMake] Compiler debug file, howto remove in clean?

2011-12-13 Thread Totte Karlsson
Hi, I'm using cmake with codegear compiler. I have been able to setup a build system to compile some dll's and executables. When compiled in Debug mode, a extra .tds file is generated and placed in the same folder as the executable, or dll. In corresponding CMakeLists.txt file I have:

Re: [CMake] Problem linking boost program_options with Visual Studio 2008

2011-12-13 Thread Mateusz Łoskot
On 13 December 2011 12:57, Mario Pezzoni pezzoni.ma...@gmail.com wrote: Hi all, i have a project in c++ that needs program_options library from boost, i use FindBoost to set include dirs and linking stuff. Compiling and linking works flawlessly under linux. With the visual studio project

Re: [CMake] Top level target depending on a file

2011-12-13 Thread Michael Hertling
On 12/12/2011 11:40 AM, Alexander Broekhuis wrote: Hi, Can anyone help me with this? I haven't found a proper solution myself yet.. Does the following examplary project do what you intend? CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) PROJECT(P C) SET(CMAKE_VERBOSE_MAKEFILE ON) # The

Re: [CMake] Problem linking boost program_options with Visual Studio 2008

2011-12-13 Thread Mateusz Łoskot
2011/12/13 Mario Pezzoni pezzoni.ma...@gmail.com: I read this one before but, it is related with dynamic linking, i need static linking. This solution do not works with static linking. You don't mention in your post how you link. Also, your CMakeLists.txt suggests you link default means

Re: [CMake] Compiler debug file, howto remove in clean?

2011-12-13 Thread Michael Hertling
On 12/13/2011 02:00 PM, Totte Karlsson wrote: Hi, I'm using cmake with codegear compiler. I have been able to setup a build system to compile some dll's and executables. When compiled in Debug mode, a extra .tds file is generated and placed in the same folder as the executable, or dll. In

Re: [CMake] Problem linking boost program_options with Visual Studio 2008

2011-12-13 Thread Mario Pezzoni
Yes it works! Sorry for the poor information provided. Boost_USE_STATIC_LIBS solves the problem. Thank you very much for your time! Mario 2011/12/13 Mateusz Łoskot mate...@loskot.net 2011/12/13 Mario Pezzoni pezzoni.ma...@gmail.com: I read this one before but, it is related with dynamic

[CMake] toolchain file and initial cache

2011-12-13 Thread Tom Deblauwe
Hello, I have a question: Using the -C option you can specify an initial cache file. I have this case where I like to specify some initial cache values, but also a toolchain file. Can I combine this and add a line in the initial cache file: set(CMAKE_TOOLCHAIN_FILE toolchain.cmake CACHE

[CMake] Fwd: Re: Compiler debug file, howto remove in clean?

2011-12-13 Thread Totte Karlsson
not sure if the following was sent to the newsgroup? Sorry if posting double.. set_property(DIRECTORY PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${RUNTIME_OUTPUT_DIRECTORY}/${target}.tds ) Is your RUNTIME_OUTPUT_DIRECTORY

Re: [CMake] Fwd: Re: Compiler debug file, howto remove in clean?

2011-12-13 Thread David Cole
RUNTIME_OUTPUT_DIRECTORY is a target property, not a variable. You'd have to use get_property to retrieve its value, not ${RUNTIME_OUTPUT_DIRECTORY}... HTH, David On Tue, Dec 13, 2011 at 10:04 AM, Totte Karlsson to...@dunescientific.com wrote: not sure if the following was sent to the

Re: [CMake] Top level target depending on a file

2011-12-13 Thread Michael Hertling
On 12/13/2011 03:24 PM, Alexander Broekhuis wrote: Hi, Thanks for the hint, I haven't tried it yet, but looks good at the first glance! I'll try this. Is this worth a feature request? To be able to add a file as a dependency to a target would make sense to me.. The posted issue (

Re: [CMake] Fwd: Re: Compiler debug file, howto remove in clean?

2011-12-13 Thread Michael Hertling
On 12/13/2011 04:04 PM, Totte Karlsson wrote: not sure if the following was sent to the newsgroup? Wasn't. ;-) Sorry if posting double.. Only to me. ;) set_property(DIRECTORY PROPERTY ADDITIONAL_MAKE_CLEAN_FILES

[CMake] Transitive link question

2011-12-13 Thread Biddiscombe, John A.
Project A creates a target which links to hdf5 using the hdf5 cmake generated cmake file which lists the imported location for the debug lib as hdf5d.lib SET_TARGET_PROPERTIES(hdf5 PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG C IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG

Re: [CMake] iOS Archiving (again)

2011-12-13 Thread Daniel Dekkers
Hi, I'm starting to get really worried about the iOS archiving when having to link to a static library. I'm writing an article where I'm selling CMake as a way to do cross-platform development for OpenGL/ES applications, including iOS. I have to decide now if I have to put a disclaimer in the

Re: [CMake] Transitive link question

2011-12-13 Thread Andreas Pakulat
On 13.12.11 15:59:17, Biddiscombe, John A. wrote: Project A creates a target which links to hdf5 using the hdf5 cmake generated cmake file which lists the imported location for the debug lib as hdf5d.lib SET_TARGET_PROPERTIES(hdf5 PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG C

Re: [CMake] FindLAPACK problem

2011-12-13 Thread Tim Gallagher
My colleague, Andy Smith, found the problem. The CMAKE_FIND_LIBRARY_SUFFIXES variable was mispelled as CMAKE_FIND_LIBRRAY_SUFFIXES causing errors. I created a ticket in Mantis and attached patches for both origin/master and origin/release. The ticket is number 12624. Tim - Original

[CMake] 2.8.7 implications for FindLAPACK problem

2011-12-13 Thread Alan W. Irwin
On 2011-12-13 12:15-0500 Tim Gallagher wrote: My colleague, Andy Smith, found the problem. The CMAKE_FIND_LIBRARY_SUFFIXES variable was mispelled as CMAKE_FIND_LIBRRAY_SUFFIXES causing errors. I created a ticket in Mantis and attached patches for both origin/master and origin/release. The

Re: [CMake] FindLAPACK problem

2011-12-13 Thread Tim Gallagher
I've found and fixed another problem. When using Intel MKL, Pthreads is also required. There is a call to find_package for Threads in FindLAPACK, and when it checks that the libraries work in the macro, it links against them so the test build works fine. But at the end of the macro, when

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-13 Thread Robert Dailey
Thanks for the info. It's a bit disappointing that it doesn't work like I expect. The CMAKE_MFC_FLAG should work as you say the link flags should, but it does not. As long as CMAKE_MFC_FLAG is set before I create my target, it works. Since CMAKE_SHARED_LINK_FLAGS does not work the same, I consider

Re: [CMake] toolchain file and initial cache

2011-12-13 Thread Alexander Neundorf
On Tuesday 13 December 2011, Tom Deblauwe wrote: Hello, I have a question: Using the -C option you can specify an initial cache file. I have this case where I like to specify some initial cache values, but also a toolchain file. Can I combine this and add a line in the initial cache file:

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-13 Thread David Cole
On Tue, Dec 13, 2011 at 2:09 PM, Robert Dailey rcdai...@gmail.com wrote: Thanks for the info. It's a bit disappointing that it doesn't work like I expect. The CMAKE_MFC_FLAG should work as you say the link flags should, but it does not. As long as CMAKE_MFC_FLAG is set before I create my

Re: [CMake] Copy a input file from src folder to EXECUTABLE_OUTPUT_PATH

2011-12-13 Thread Michael Hertling
On 12/12/2011 04:36 PM, Michael Wild wrote: On 12/12/2011 04:29 PM, Totte Karlsson wrote: At build time: ADD_CUSTOM_COMMAND(TARGET OneOfYourExecutables COMMAND ${CMAKE_COMMAND} -E copy_if_different path/to/input.txt $TARGET_FILE_DIR:OneOfYourExecutables)

Re: [CMake] Transitive link question

2011-12-13 Thread Biddiscombe, John A.
Sure, when project A is loaded into project B it either needs to search and load the hdf5 cmake file or require that to be done in project B before loading project A. Then the hdf5 target will be known in project B too and linking will work fine. Using find_package in project B is an option,

Re: [CMake] CMAKE_EXE_LINKER_FLAGS for shared libraries?

2011-12-13 Thread Michael Hertling
On 12/13/2011 09:21 PM, David Cole wrote: On Tue, Dec 13, 2011 at 2:09 PM, Robert Dailey rcdai...@gmail.com wrote: Thanks for the info. It's a bit disappointing that it doesn't work like I expect. The CMAKE_MFC_FLAG should work as you say the link flags should, but it does not. As long as

[CMake] Checking Cpack generator type in script code of (INSTALL SCRIPT

2011-12-13 Thread vivek goel
hi, I am using (INSTALL SCRIPT foo) inside foo how can I check that generator type is RPM or not ? I tried with this code if(CPACK_GENERATOR MATCHES RPM) EXECUTE_PROCESS(COMMAND echo ${CMAKE_INSTALL_PREFIX}) endif(CPACK_GENERATOR MATCHES RPM) But this code doesn't work. regards Vivek Goel

Re: [CMake] Checking Cpack generator type in script code of (INSTALL SCRIPT

2011-12-13 Thread David Cole
On Tue, Dec 13, 2011 at 7:27 PM, vivek goel goelvivek2...@gmail.com wrote: hi, I am using (INSTALL SCRIPT foo) inside foo how can I check that generator type is RPM or not ? You can't. The script is run at make install time, which may be run with or without CPack having invoked it. What you

[Cmake-commits] CMake branch, next, updated. v2.8.6-2189-ga32595a

2011-12-13 Thread Clinton Stimpson
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 a32595ab011d8b5159967943f9d323e60cb13258 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.6-2198-g978acdb

2011-12-13 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 978acdb83c6f78ba35aca2c6690b123f67d90764 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.6-2202-g65f7aad

2011-12-13 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 65f7aad2f7d8884a21b9e99dc58baa16d1aef36a (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.6-373-g4ed1769

2011-12-13 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 4ed1769186f0622efced9d89e6593d136c920dd2 (commit) from