Re: [CMake] Fwd: Adding custom directories to PATH enviroment

2011-04-13 Thread Michael Wild
On 04/13/2011 05:52 PM, Gabriele Greco wrote: Then you haven't read or understood my message ;-) Instead of calling idlcc directly in the add_custom_command, you call a wrapper script, that sets the PATH environment variable, and *then* invokes idlcc. Ok, I implemented your

Re: [CMake] add_definition??

2011-04-13 Thread Michael Wild
On 04/13/2011 11:50 PM, klaas.holwerda wrote: Hi, I use ADD_DEFINITIONS( ${wxWidgets_DEFINITIONS} ) to add flags for compilation like this: set( wxWidgets_CXX_FLAGS ${wxWidgets_CXX_FLAGS} -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__ -fexceptions -fno-pcc-struct-return

Re: [CMake] Add library at compiling time

2011-04-12 Thread Michael Wild
On 04/12/2011 04:52 PM, pellegrini wrote: Hello everybody, I am using CMake 2.8 on a Fortran 90 project using ifort compiler. I would like to specify the path for Winteracter graphical library not only when linking but also when compiling. By the way the library is not in a standard

Re: [CMake] Add library at compiling time

2011-04-12 Thread Michael Wild
On 04/12/2011 05:20 PM, pellegrini wrote: Michael Wild a écrit : On 04/12/2011 04:52 PM, pellegrini wrote: Hello everybody, I am using CMake 2.8 on a Fortran 90 project using ifort compiler. I would like to specify the path for Winteracter graphical library not only when linking

Re: [CMake] DESTDIR behaviour with different variable name

2011-04-11 Thread Michael Wild
On 04/11/2011 03:16 PM, Tomasz Grobelny wrote: I need behaviour that is available with DESTDIR (that is changing location of installation root after configuration and build is done) but with different name of environment variable (eg. MYDESTDIR). Is it possible with cmake? export

Re: [CMake] DLL and EXE with same base name: clash in VS.

2011-04-06 Thread Michael Wild
On 04/06/2011 09:21 AM, Alexey Livshits wrote: We have a clang.exe and a clang.dll. While building, VS creates clang.pdb (for the executable) and clang.pdb (for the dll) which obviously is not right. Is there a way to tell VS to use a different name for the PDB? You can use different

Re: [CMake] DLL and EXE with same base name: clash in VS.

2011-04-06 Thread Michael Wild
On 04/06/2011 10:34 AM, Óscar Fuentes wrote: Michael Wild them...@gmail.com writes: On 04/06/2011 09:21 AM, Alexey Livshits wrote: We have a clang.exe and a clang.dll. While building, VS creates clang.pdb (for the executable) and clang.pdb (for the dll) which obviously is not right

Re: [CMake] CMake and include only libraries

2011-04-05 Thread Michael Wild
related to headers but few header knowledgeable commands... On 04/05/2011 03:53 AM, Michael Wild wrote: I don't see what the problem with install(FILES ...) is? If you have a header-only library, you just don't need any of the complex EXPORT stuff. That is only related to the dependencies

Re: [CMake] How to make the installation less verbose?

2011-04-04 Thread Michael Wild
On 04/04/2011 04:44 PM, David Cole wrote: You didn't miss anything. The code that does this looks like this in Source/cmFileCommand.cxx: std::string message = (copy? Installing: : Up-to-date: ); message += toFile; this-Makefile-DisplayStatus(message.c_str(), -1); As you can

Re: [CMake] How to write find_package when *Config.cmake is given?

2011-04-04 Thread Michael Wild
On 04/04/2011 08:17 PM, Hauke Heibel wrote: Hi, I am wondering how to write find_package when I am providing a moduleConfig.cmake file. Do I do something like this? find_file(MY_CONFIG_FILE moduleConfig.cmake HINTS ...) if (MY_CONFIG_FILE) include(${MY_CONFIG_FILE}) endif() What

Re: [CMake] CMake and include only libraries

2011-04-04 Thread Michael Wild
On 04/05/2011 03:53 AM, Michael Hertling wrote: On 04/04/2011 07:30 PM, Theodore Papadopoulo wrote: Hi, I'm trying to use cmake to install a include only library. I'd like to use the export feature as described in

Re: [CMake] Specify an alternate C++ compiler for some source files

2011-03-30 Thread Michael Wild
On 03/30/2011 01:42 PM, Marc Tajchman wrote: Hi, How to specify different compilers for different source files in CMakeLists.txt, e.g. if test1.cxx must be compiled with g++ test2.cxx must be compiled with mpicxx (mpi compiler) I tried add_executable(test1.exe test1.cxx)

Re: [CMake] List of possible completion values

2011-03-30 Thread Michael Wild
On 03/30/2011 05:52 PM, Tim Gallagher wrote: Hi, Is there a way (and if not, how do I submit a feature request) to have a set of drop-down type options in the ccmake interface? The obvious example is for CMAKE_BUILD_TYPE, where something like hitting Enter scrolls through Release - Debug

Re: [CMake] Make install in subdirs (cmake newbie)

2011-03-16 Thread Michael Wild
On 03/16/2011 09:37 AM, Jörg Schlichter wrote: Hi! I started to use cmake (and I like it), but I am now confronted with a problem I cannot to solve: We have a layout of our software tree looking more or less like this: | |--public_headers |--lib | |--src |--project1

Re: [CMake] Adding new language.

2011-03-15 Thread Michael Wild
On 03/15/2011 09:53 AM, arrowdodger wrote: On Tue, Mar 15, 2011 at 1:44 AM, Michael Hertling mhertl...@online.dewrote: To be exact, it's a rule variable which describes how to compile a C source file to an object file. On my system, it currently expands to: CMAKE_C_COMPILER DEFINES FLAGS -o

Re: [CMake] No LANG_FLAGS_CONFIG target property.

2011-03-14 Thread Michael Wild
On 03/14/2011 12:42 AM, Óscar Fuentes wrote: There are target properties such as LINK_FLAGS and LINK_FLAGS_CONFIG, but I don't see properties for setting compiler flags. This makes impossible to build two targets on the same CMakeLists.txt with different compiler flags (I was told that the

Re: [CMake] Precompiled headers path bug(?)

2011-03-14 Thread Michael Wild
On 03/14/2011 05:58 AM, Paulo Silva wrote: Hi, if I do set(PCHDIR ../include.pch) add_precompiled_header( ${PROJECT_NAME} ${PCHDIR}/pch.hpp ) an extra ../ is added to PCHDIR. Isn't this a bug. However if I do set(PCHDIR ../../include.pch) or anything else nothing gets added. This

Re: [CMake] Configuring external projects with cmake for a nonexistent install directory which is not configure-time writable

2011-03-14 Thread Michael Wild
On 03/14/2011 03:37 PM, The Wanderer wrote: (I apologize for setting the Reply-To header, but I know of no other way to prevent my being sent an additional off-list copy of any reply even when there is no specific need to draw my attention to that reply.) I am running cmake 2.8.2,

Re: [CMake] Configuring external projects with cmake for a nonexistent install directory which is not configure-time writable

2011-03-14 Thread Michael Wild
On 03/14/2011 04:46 PM, The Wanderer wrote: On 03/14/2011 11:05 AM, Eric Noulard wrote: 2011/3/14 The Wanderer wande...@fastmail.fm: (I apologize for setting the Reply-To header, but I know of no other way to prevent my being sent an additional off-list copy of any reply even when there is

Re: [CMake] newbie q - where do I put what in which CMakeLists file? out of source build

2011-03-09 Thread Michael Wild
On 03/09/2011 04:14 PM, Pierre Abbat wrote: On Wednesday 09 March 2011 05:19:42 Johannes Zarl wrote: configure_file(src/config.h.in config.h) In CMake, use of relative filenames is (mostly) discouraged. A robust way to do this would be to write: configure_file(

Re: [CMake] newbie q - where do I put what in which CMakeLists file? out of source build

2011-03-09 Thread Michael Wild
On 03/09/2011 07:09 PM, Michael Hertling wrote: On 03/09/2011 05:54 PM, Pierre Abbat wrote: On Wednesday 09 March 2011 10:22:50 Michael Wild wrote: Make the ~/tone12/CMakeLists.txt your main CMake file (i.e. put the project() command in there and all other commands that apply to the whole

Re: [CMake] Default source properties and get_property plus LANGUAGE source propery has no effect.

2011-03-04 Thread Michael Wild
On 03/04/2011 01:56 PM, Orcun Gokbulut wrote: Hi everybody, I came across two problems when I was porting our project build system to cmake. The first program that I encounter is I can not compile generated source files with extension other than default c/c++ extensions. I have

Re: [CMake] IF Matches

2011-03-03 Thread Michael Wild
On 03/03/2011 11:25 AM, Micha Renner wrote: Hello, IF(bgdgbBromNN MATCHES Brom) is true, but IF(Brom MATCHES bgdgbBromNN) is false. Should be same, or? Greetings Micha No, the right-hand-side of MATCHES is a regular expression. Michael

Re: [CMake] Xcode C++ linking

2011-03-02 Thread Michael Wild
On 03/02/2011 09:05 AM, Robert Bielik wrote: Hi, I'm trying to set Xcode to have static linking to the C++ standard libary, but I don't know how to. Also, Xcode mention that to make this work reliably, Symbols hidden by default must be enabled. Tips ? :) TIA /Rob Probably this means

Re: [CMake] Xcode C++ linking

2011-03-02 Thread Michael Wild
On 03/02/2011 10:05 AM, Robert Bielik wrote: Michael Wild skrev 2011-03-02 10:02: Probably this means to add -fvisibility=hidden and -static. However, -static will cause you to link everything statically, which will fail if you pass a dynamic library to target_link_libraries(). Ok, thanks

Re: [CMake] Splitting directory and file.

2011-03-02 Thread Michael Wild
string(REGEX REPLACE /+$ dname ${dname}) Strips all trailing slashes. But honestly, man cmake would have been way faster and less embarrassing... HTH Michael On 03/02/2011 01:41 PM, Pablo Zurita wrote: Yes, that works. Now I just need to remove the last character if it is a forward slash.

Re: [CMake] Function and list

2011-03-02 Thread Michael Wild
On 03/02/2011 03:52 PM, Anton Sibilev wrote: Hello! I have a function like FUNCTION (MY_FUNC list) MESSAGE (..${list}) ENDFUNCTION () And I call it like: SET (list 11 22 33 44 55) MY_FUNC (list) and output is: ..11 How I can work with lists or unknown number of arguments in

Re: [CMake] make didn't compile

2011-03-02 Thread Michael Wild
On 03/02/2011 05:33 PM, Enrique Izaguirre wrote: Hello friends, I have another problem with my build. I run Cmake and complete the building and production of a Makefile. But when I run make I get the following result: i686-unknown-linux-gnu-g++: cannot specify -o with -c or -S and

Re: [CMake] Xcode C++ linking

2011-03-02 Thread Michael Wild
On 02.03.2011, at 18:20, Robert Bielik robert.bie...@xponaut.se wrote: Michael Jackson skrev 2011-03-02 18:14: In case you didn't happen to find this article: http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/LibCPPDeployment.html

Re: [CMake] Splitting directory and file.

2011-03-02 Thread Michael Wild
On 03/03/2011 05:00 AM, Pablo Zurita wrote: Thanks for the help guys. With that I was able to write the following function that allows me to deal with my source as I want. # create_source_group(relativeSourcePath sourceGroupName files) # # Creates a source group with the

Re: [CMake] make test to run tests in parallel in CMake 2.8?

2011-02-28 Thread Michael Wild
On 02/28/2011 03:03 PM, Chris Green wrote: Hi, I would have expected this naively to be a FAQ already, but the almighty Ge wasn't particularly helpful. If I *have* missed the answer somehow, please accept my apologies and I'd appreciate a brief pointer to the right place to find it:

Re: [CMake] make test to run tests in parallel in CMake 2.8?

2011-02-28 Thread Michael Wild
On 02/28/2011 03:57 PM, Chris Green wrote: On 2/28/11 8:13 AM, Michael Wild wrote: On 02/28/2011 03:03 PM, Chris Green wrote: snip Try this: make test ARGS=-j12 Bingo! Thank you, Chris. Just a warning: AFAIK this is undocumented and I found it out by looking at the Makefile. So

Re: [CMake] target_link_libraries not working with add_library

2011-02-25 Thread Michael Wild
On 02/25/2011 01:48 PM, Felipe Ferreri Tonello wrote: Guys, I'm doing this: add_library(lib_base ${sources}) target_link_libraries(lib_base ${libs}) but look at the linker output: /usr/bin/ar cr liblib_base.a CMakeFiles/lib_base.dir/diskman.cpp.o CMakeFiles/lib_base.dir/netutils.cpp.o

Re: [CMake] Prevent make (linux) from fowling dependencies out of cwd

2011-02-24 Thread Michael Wild
On 02/25/2011 04:58 AM, Mark Miller wrote: I am on a large project that uses CMake. I do my development primarily on Linux. Prior to introduction of CMake, the makefiles we produced would be such that I could cd into some directory and type something like 'make -j 4' and it would make

Re: [CMake] Setting global make variable from CMake,

2011-02-21 Thread Michael Wild
On 02/21/2011 04:35 PM, Eric Noulard wrote: 2011/2/21 Łukasz Tasz luk...@tasz.eu: 2011/2/21 Eric Noulard eric.noul...@gmail.com: What is your use case? In my case I'm making integration with ccache, and distcc, and as you know all of them are tuned only via ENV_VARS. Depending on

Re: [CMake] Gyp VS CMake

2011-02-19 Thread Michael Wild
On 02/18/2011 09:34 PM, Peter Kümmel wrote: On 18.02.2011 20:48, David Cole wrote: There are many pros for this idea, but a very important con: People will use it as a general purpose programming language (see what often happens to SCons projects). Even CMake has this problem to a lesser

Re: [CMake] Gyp VS CMake

2011-02-19 Thread Michael Wild
On 02/19/2011 06:16 PM, Jed Brown wrote: On Fri, Feb 18, 2011 at 17:16, Michael Wild them...@gmail.com wrote: Well, cl.exe for one doesn't do this trick. This means, you'll have to put it in your build system, and once you've done that, why should you use the compiler then? Especially, since

Re: [CMake] CTest in a cross-compiling environment

2011-02-18 Thread Michael Wild
On 02/18/2011 04:36 PM, James Amundson wrote: Hi, Are there any CMake solutions for running tests in a cross-compiling environment? Right now I have a lovely test suite that runs over sixty different executables using the standard CMake and CTest setup. It works exactly as I want under

Re: [CMake] Gyp VS CMake

2011-02-18 Thread Michael Wild
On 02/18/2011 04:48 PM, j s wrote: Hello, There is nothing wrong with another build system. Not all build systems fit everyone needs, much like subversion and git being suitable for different development styles. When I have the time, I will start developing my own build system. It will

Re: [CMake] Naive (stupid?) question

2011-02-17 Thread Michael Wild
configure_file() only copies changed files, so that *must* trigger a rebuild of all dependent files. Michael On 17.02.2011, at 14:37, Carminati Federico federico.carmin...@cern.ch wrote: Thanks John, Indeed there is one and this is certainly part of the problem. We also found out that

Re: [CMake] 2.8.5 version

2011-02-16 Thread Michael Wild
On 02/16/2011 11:40 AM, Andrea Galeazzi wrote: IL 15/02/2011 21.59, David Cole ha scritto: 2011/2/15 Alexander Neundorf a.neundorf-w...@gmx.net mailto:a.neundorf-w...@gmx.net On Monday 14 February 2011, David Cole wrote: On Mon, Feb 14, 2011 at 4:14 AM, Andrea Galeazzi

Re: [CMake] Detecting 32/64 bit systems

2011-02-14 Thread Michael Wild
But there's one important pitfall: fat binaries. E.g. on Mac OS X if CMAKE_OSX_ARCHITECTURES is set to multiple architectures (especially, if they're mixed 32/64 bit) you can't rely on the value of CMAKE_SIZEOF_VOID_P. You can't do anything about this stuff in your CMake code, because you are

Re: [CMake] Link directories

2011-02-14 Thread Michael Wild
On 02/14/2011 03:45 PM, Robert Bielik wrote: Eric Noulard skrev 2011-02-14 15:42: I seem to be missing something, cause I cannot find a target property for setting additional library directories (for a MSVC project) Usually you do not specify additional lib directories you should specify

Re: [CMake] --debug-trycompile causes false positives from check_function_exists

2011-02-10 Thread Michael Wild
On 02/11/2011 04:30 AM, Jack Poulson wrote: This is occurring with CMake 2.8.3 on OSX for several different check_function_exists calls. Is this expected behavior? Jack Seriously, we're going to need some more information than just I get false positives... Michael

Re: [CMake] Question about dependencies

2011-02-09 Thread Michael Wild
Apart from the typos already pointed out by Martin, what is the define_custom_target() command? Did you mean add_custom_command() or add_custom_target()? If so, the syntax is completely wrong. If you meant add_dependencies(), then that is also wrong, because add_dependencies only operates on

Re: [CMake] FindMKL.cmake

2011-02-09 Thread Michael Wild
On 02/09/2011 01:50 PM, Robert Bielik wrote: Hi all, I'm trying to make a FindMKL.cmake file (for Intel MKL) to handle Windows and Mac OS X primarily. However, I thought that CMake would find my FindMKL.cmake file if being in the same directory as the calling CMakeLists.txt file ? Can I

Re: [CMake] FindMKL.cmake

2011-02-09 Thread Michael Wild
On 02/09/2011 04:41 PM, Robert Bielik wrote: David Cole skrev 2011-02-09 16:32: You can iterate the returned list something like this to accumulate just directory names: set(dirs ) foreach(f ${glob_results}) if(IS_DIRECTORY ${f}) set(dirs ${dirs} ${f}) endif() endforeach()

Re: [CMake] Automatic out of source build's possible?

2011-02-08 Thread Michael Wild
And there's the hidden trap that the -D options must be *before* the -P option. Very nasty, especially for people who never used CMake before. Michael On 02/08/2011 09:27 AM, Martin O'Brien wrote: Absolutely, and that is what I do in some cases, but in the particular case that I described -

Re: [CMake] Automatic out of source build's possible?

2011-02-07 Thread Michael Wild
That's not how CMake works. With CMake developers usually have many binary trees referring to one single source tree (optimized/debug, 32/64 bit, with/without some optional dependencies, etc.). There is no good way that CMake could automate the choice of suitable name of the binary tree (and scons

Re: [CMake] How to specify $1 for compiler?

2011-02-07 Thread Michael Wild
On 02/07/2011 11:35 PM, Jed Brown wrote: On Thu, Feb 3, 2011 at 14:42, Michael Wild them...@gmail.com wrote: That depends on the quoting you use. The variable type is FILEPATH, spaces are always escaped by CMake (it's not up to me). Ahh, yes. Forgot about that catch. But since you're

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Michael Wild
On 02/04/2011 10:40 AM, Tim Hütz wrote: Hello, recently I was searching for a CMake option to get the position of a single character (first appearance) out of a string. As I found nothing which could provide me an easy solution, I pulled the latest development version and added a FIND

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Michael Wild
On 02/04/2011 12:49 PM, Tim Hütz wrote: I don't think that the speed-factor was important in this case. A complete CMake run takes about 25 seconds to run (in my case) and I see no influence in the processing time with my suggested patch or the regular expression sample provided by Michael.

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Michael Wild
occurrence of a word or sub-sentence, am I right? Am 04.02.2011 um 13:32 schrieb Michael Wild: On 02/04/2011 12:49 PM, Tim Hütz wrote: I don't think that the speed-factor was important in this case. A complete CMake run takes about 25 seconds to run (in my case) and I see no influence

Re: [CMake] FIND sub-command to the STRING command

2011-02-04 Thread Michael Wild
( FIND REGEX ...) is nice too. I'm working on it as soon as I have some free minutes :) Am 04.02.2011 um 16:02 schrieb Michael Wild: Exactly. The single-character matching would then just be a special case. If you want to get fancy, having a string(FIND REGEX) command would also be nice

Re: [cmake-developers] [CMake] namespace support

2011-02-03 Thread Michael Wild
On 02/03/2011 08:04 PM, Bill Hoffman wrote: On 2/3/2011 12:20 PM, Peter Kümmel wrote: On 03.02.2011 17:20, Peter Kümmel wrote: Because good solution is not available I've added the mentioned namespace support to CMake: namespace(string) endnamespace() With attached patch it is possible

Re: [CMake] namespace support

2011-02-03 Thread Michael Wild
On 02/03/2011 09:59 AM, Peter Kümmel wrote: On 03.02.2011 00:56, Michael Jackson wrote: On Feb 2, 2011, at 6:38 PM, Peter Kümmel wrote: On 02.02.2011 16:39, Michael Jackson wrote: On Feb 2, 2011, at 10:21 AM, Peter Kümmel wrote: On 02.02.2011 16:17, Michael Wild wrote: namespace

Re: [CMake] try_run removes semicolons from output?

2011-02-03 Thread Michael Wild
On 02/03/2011 05:32 PM, Dominik Szczerba wrote: Still not sure bug or not, but trying things out blind I found a workaround: enclose contents of RUN_OUTPUT_VARIABLE in quotes. Dominik On Thu, Feb 3, 2011 at 5:24 PM, Dominik Szczerba domi...@itis.ethz.ch wrote: I am using try_run to

Re: [CMake] How to specify $1 for compiler?

2011-02-03 Thread Michael Wild
On 02/03/2011 08:30 PM, Jed Brown wrote: I need to build a compilation command of the form win32fe f90 -with -options -and source.f -o path/to/source.f.o but setting CMAKE_Fortran_COMILER=/path/to/win32fe and CMAKE_Fortran_FLAGS=f90 -with -options does not work because CMake places

Re: [CMake] How to specify $1 for compiler?

2011-02-03 Thread Michael Wild
On 02/03/2011 08:40 PM, Jed Brown wrote: On Thu, Feb 3, 2011 at 16:33, Michael Wild them...@gmail.com wrote: CMAKE_Fortran_COMPILER=/path/to/win32fe -f90 -with -options Doesn't work because that whole thing becomes $0, which does not exist on the file system. That depends

Re: [CMake] namespace support

2011-02-02 Thread Michael Wild
On 02/02/2011 04:08 PM, Peter Kümmel wrote: I wanna build several targets in one CMakeLists.txt, because I have many simple one-file-only plugins with the same build rules, for instance: include_directories(a) add_library(a MODULE a/a.cpp) include_directories(b) add_library(b MODULE

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-29 Thread Michael Wild
On 29. Jan, 2011, at 3:06 , Óscar Fuentes wrote: Michael Wild them...@gmail.com writes: The point I (and Andreas) wanted to make is that you can just add it. If it's a system directory, CMake is going to filter it out (I didn't say duplicates, I said doesn't even show up ONCE, which means

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Michael Wild
On 01/27/2011 03:53 PM, Óscar Fuentes wrote: Andreas Pakulat ap...@gmx.de writes: On 27.01.11 16:13:09, arrowdodger wrote: Hello. On FreeBSD everything, that distributes with system goes to /usr (i mean includes go to /usr/includes and libs to /usr/lib) and all 3d party stuff goes to

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Michael Wild
On 01/27/2011 04:49 PM, Óscar Fuentes wrote: Michael Wild them...@gmail.com writes: No, the bug is in your cmake code. You shouldn't use USER_DEFINED_INCLUDE_DIR to decide wether to add the path to the include-directories or not. Instead use the FFI_INCLUDE_PATH variable to decide

Re: [CMake] CMake performs search for includes/libs in non-default compiler search paths.

2011-01-27 Thread Michael Wild
On 01/27/2011 08:08 PM, Óscar Fuentes wrote: Michael Wild them...@gmail.com writes: Okay, cmake removes duplicated directories that already are on the list. So what? First, I hope that cmake does not optimize this series: A B C A ... to this: A B C or to this: B C A Removing

Re: [CMake] Out-of-source build and access to data

2011-01-26 Thread Michael Wild
Look at these two documents: http://doc.trolltech.com/4.1/qt-conf.html http://doc.trolltech.com/4.1/qlibraryinfo.html#location By creating a qt.conf in your build directory next to your application you can make your code completely agnostic to the location of your data files. HTH Michael On

Re: [cmake-developers] CMake to GMake issues

2011-01-24 Thread Michael Wild
On 01/24/2011 06:02 PM, Chris Lawrence wrote: Hi, I've recently been looking into using CMake with one of my projects at work. I've recently run into a problem where the Makefile, CMake generates will not run on my build system unless I install the cmake libraries. Just to clarify, my

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Michael Wild
On 01/20/2011 12:10 PM, SF Markus Elfring wrote: Thanks for your help to make CMake better, Is the command variant string(REGEX REPLACE ...) completely documented? Can multiple variables be specified that will receive the data from the evaluation of subexpressions in the passed regular

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Michael Wild
On 01/20/2011 01:30 PM, SF Markus Elfring wrote: get_directory_property(info COMPILE_DEFINITIONS) How do you think about an extension for this programming interface? Would you like to support that target parameters like preprocessor symbols are queried from the build environment even if

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Michael Wild
On 01/20/2011 02:01 PM, David Cole wrote: On Thu, Jan 20, 2011 at 7:39 AM, Michael Wild them...@gmail.com wrote: On 01/20/2011 12:10 PM, SF Markus Elfring wrote: Thanks for your help to make CMake better, Is the command variant string(REGEX REPLACE ...) completely documented? Can multiple

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Michael Wild
On 01/20/2011 02:14 PM, David Cole wrote: On Thu, Jan 20, 2011 at 8:06 AM, Michael Wild them...@gmail.com wrote: On 01/20/2011 02:01 PM, David Cole wrote: On Thu, Jan 20, 2011 at 7:39 AM, Michael Wild them...@gmail.com wrote: On 01/20/2011 12:10 PM, SF Markus Elfring wrote: Thanks for your

Re: [CMake] How to make a ProjectConfig.cmake

2011-01-20 Thread Michael Wild
On 01/19/2011 07:24 PM, Alexander Neundorf wrote: On Thursday 30 December 2010, Michael Wild wrote: On 12/30/2010 11:33 AM, Ian Monroe wrote: To create my QyotoConfig.cmake I need to know the full path of a library so that I can set a variable like QYOTO_LIBRARY. This is pretty standard

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Michael Wild
On 01/20/2011 04:30 PM, SF Markus Elfring wrote: Probably that would be pretty difficult to achieve and definitely would break backwards-compatibility beyond resurrection. I have got a different opinion. I imagine that a property with a new name can provide the desired service to retrieve

Re: [CMake] How to assign data from subexpressions of regular expressions to CMake variables?

2011-01-20 Thread Michael Wild
On 20.01.2011, at 18:37, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 20 January 2011, Michael Wild wrote: On 01/20/2011 02:14 PM, David Cole wrote: ... Me too. I had to go searching for CMAKE_MATCH_ because I knew it was stated somewhere. Much to my surprise

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread Michael Wild
On 01/19/2011 09:30 AM, SF Markus Elfring wrote: Hello, I know that some source code will only be needed in my example project if the preprocessor symbol NDEBUG is not defined. This is usual for conditional compilation. The corresponding bit of debug code calls functions which are

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread Michael Wild
On 01/19/2011 09:50 AM, SF Markus Elfring wrote: Why don't you include the check for NDEBUG in in your debug-sources? This is the case already. The time you'll waste compiling these files will be negligible, and it would work with mult-config IDE's. I find this view debatable. I would

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread Michael Wild
Just tried out my last approach, and found out that it doesn't work. The executable target always depends on the library target, irrespective of the build configuration. On 01/19/2011 11:50 AM, SF Markus Elfring wrote: For multi-config IDE's you *don't know* whether NDEBUG is defined or not at

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread Michael Wild
On 01/19/2011 02:41 PM, SF Markus Elfring wrote: You don't seem to understand the difference between CMake-time and Make- (or build-) time. I understand that there can be differences between the time of configuration and the applied generation. I guess that we have got different

Re: [CMake] How to query compiler definitions?

2011-01-19 Thread Michael Wild
On 01/19/2011 03:45 PM, SF Markus Elfring wrote: set_source_files_properties(debug_funcs.c PROPERTIES EXCLUDE_FROM_CONFIGURATIONS Release;MinSizeRel) I do not want to exclude this file based on the value of the variable CMAKE_BUILD_TYPE. ;-) Why not? That's mostly equivalent to doing

Re: [CMake] text file modifications while Install

2011-01-17 Thread Michael Wild
On 01/17/2011 02:53 PM, Ilja Golshtein wrote: Hello, list, please, suggest proper way to do some text file modifications while Install. Basically I need something similar with RPATH change Cmake does, but against a configuration file. Currently I create amended version of the config

Re: [CMake] retrieve the path of an object file

2011-01-14 Thread Michael Wild
On 01/14/2011 12:17 PM, Andrea Galeazzi wrote: Given a source file (path/foo.c), does CMake provide a way to retrieve the obj file path/filename generate by the compiler? No, it doesn't (and usually, in my experience, it's the wrong question to ask...). Michael

Re: [CMake] Path to installed target

2011-01-12 Thread Michael Wild
On 01/12/2011 01:24 PM, Alexey Livshits wrote: What do you want to do? I have some tests, which cannot be run without installation because of dependencies. So I need to specify the install path to add_test. Is there a better approach? Yes, make the tests run without installation. To give

Re: [CMake] Path to installed target

2011-01-12 Thread Michael Wild
On 01/12/2011 01:48 PM, Alexey Livshits wrote: Yes, make the tests run without installation. To give more advice, we'd need to know more about those dependencies. Are they other executables? Data files? Libraries? Well, if I could do that, I wouldn't ask ;) I have 2 versions, which are

Re: [CMake] Path to installed target

2011-01-12 Thread Michael Wild
On 01/12/2011 02:16 PM, Alexey Livshits wrote: As I mentioned above, there are targets foo1 and foo2, build from foo sources, and the output name has to be foo. This is the conflict. The test depends from foo1 and bar2. If you don't explain the problem more clearly, people won't be able to

Re: [CMake] Path to installed target

2011-01-12 Thread Michael Wild
On 01/12/2011 02:47 PM, David Cole wrote: On Wed, Jan 12, 2011 at 8:34 AM, Alexey Livshits livch...@web.de wrote: Well, if you don't want any help fixing the real problem, then the answer is simple: CMake can't possibly give you that information because of DESTDIR. Thank you. So, go and

Re: [CMake] Path to installed target

2011-01-12 Thread Michael Wild
On 01/12/2011 03:03 PM, Alexey Livshits wrote: Thing is, you can't *rely* on DESTDIR *not* being used by the user of your project. If a user shoots himself in the foot, that's his fault, but when designing your test architecture you IMHO shouldn't make the use of DESTDIR impossible. I'm sure

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Michael Wild
On 01/07/2011 11:36 AM, Mark Abraham wrote: Hi, When using MPI, our project needs to be able to test for the validity of MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could use try_compile to compile a simple test program, however we need to be able to direct the use of

Re: [CMake] testing for MPI_IN_PLACE

2011-01-07 Thread Michael Wild
On 01/07/2011 03:26 PM, Mark Abraham wrote: On 7/01/2011 11:17 PM, Michael Wild wrote: On 01/07/2011 11:36 AM, Mark Abraham wrote: Hi, When using MPI, our project needs to be able to test for the validity of MPI_IN_PLACE (http://redmine.gromacs.org/issues/594). Ideally we could use

Re: [CMake] Possible bug in XCode backend and proposed workarounds

2011-01-06 Thread Michael Wild
On 01/06/2011 05:02 PM, Samuel Crow wrote: Hello, I've built LLVM 2.9SVN successfully with CMake under XCode but had some workarounds needed to get to that point. 1. Building in debug mode there was one archive file dependency that looked for the release folder instead of the debug

Re: [CMake] Possible bug in XCode backend and proposed workarounds

2011-01-06 Thread Michael Wild
On 01/06/2011 05:47 PM, Samuel Crow wrote: - Original Message From: Michael Wild them...@gmail.com To: cmake@cmake.org Sent: Thu, January 6, 2011 10:16:28 AM Subject: Re: [CMake] Possible bug in XCode backend and proposed workarounds On 01/06/2011 05:02 PM, Samuel Crow

Re: [CMake] Problems with CPack and Mac OS X

2011-01-06 Thread Michael Wild
On 01/06/2011 09:31 PM, NoRulez wrote: Hi, I want to use the package generator PackageMaker. If I run cpack from the command line I get the Error that my app couldn't be found (without .app) I have a bundle created with add_executable(MyApp MACOSX_BUNDLE...) In the cpack

Re: [CMake] suspicious behaviour of FindPkgConfig

2011-01-06 Thread Michael Wild
1. Flann uses CMake, so it should install a FlannConfig.cmake (possibly in addition to the currently installed flann.pc). This would obsolete all issues below. 2. Since Flann only comes with a pkg-config module and there's no FindFlann.cmake module in CMake, the OP could either write his own

Re: [CMake] How to get rid off predefine XXX_EXPORTS @add_library(XXX SHARED ...)

2011-01-05 Thread Michael Wild
On 01/05/2011 10:05 AM, Sören Freudiger wrote: Hi I have a problem. After running CMake (VS 2003/2008 project) there's always a EXPORT preprocessor define in my project setting that I don't need. add_library(XXX SHARED ...) -- predefine XXX_EXPORTS I manually set this predefine in a

Re: [CMake] Delivery target

2011-01-05 Thread Michael Wild
On 01/05/2011 02:13 PM, Reinhard Thies wrote: On Wednesday 05 January 2011 12:32:52 David Cole wrote: You can't depend on package, but you can do this as your custom target's command: cmake --build . --target package --config Release scp ... that the way I have it

Re: [CMake] Chasing up: XCode 3.2.4 and CMake 2.8.2, setting GCC version to 4.0

2011-01-04 Thread Michael Wild
Hi John You shouldn't rely on CMAKE_SIZEOF_VOID_P anyway; it's deadly when you try to build a universal binary. Much better to use the CheckTypeSize module with which you can do the following: include(CheckTypeSize) check_type_size(void* SIZEOF_VOID_P) if(SIZEOF_VOID_P STREQUAL )

Re: [CMake] Installing Python Modules with CMake

2011-01-03 Thread Michael Wild
On 01/03/2011 09:11 AM, Todd Gamblin wrote: Is there some standard way in CMake to get a project-local install destination for python libraries, e.g.: ${CMAKE_INSTALL_PREFIX}/lib/python2.6/site-packages Is this something find modules typically provide? I can construct this name

Re: [CMake] Finding Python Modules with CMake

2011-01-03 Thread Michael Wild
On 01/03/2011 09:17 AM, Todd Gamblin wrote: Is there a way in CMake, once I find the python interpreter, to query for the availability of a particular module? e.g. say I want to make sure that the host's python installation has PyQt4, or numy, or something like that. Do I have to manually

Re: [CMake] Installing Python Modules with CMake

2011-01-03 Thread Michael Wild
On 01/03/2011 06:23 PM, Todd Gamblin wrote: On Jan 3, 2011, at 1:34 AM, Michael Wild wrote: On 01/03/2011 09:11 AM, Todd Gamblin wrote: Is there some standard way in CMake to get a project-local install destination for python libraries, e.g.: ${CMAKE_INSTALL_PREFIX}/lib/python2.6/site

Re: [CMake] How to make a ProjectConfig.cmake

2010-12-31 Thread Michael Wild
On 12/31/2010 10:16 AM, Michael Hertling wrote: On 12/30/2010 06:59 PM, Ian Monroe wrote: On Thu, Dec 30, 2010 at 09:42, Michael Wild them...@gmail.com wrote: On 12/30/2010 03:34 PM, Ian Monroe wrote: On Thu, Dec 30, 2010 at 08:08, Michael Hertling mhertl...@online.de wrote: On 12/30/2010

Re: [CMake] CMAKE uses wrong symlink to so

2010-12-31 Thread Michael Wild
On 12/30/2010 07:55 PM, j s wrote: Hello Michael Wild, I regret deciding to go with an Python parser for my application. I use such a small subset of the API, I was hoping to be able to rerelease my app everytime it changes. Apparently Python 2.6 is frozen. In the future, the Python

Re: [CMake] CMAKE uses wrong symlink to so

2010-12-31 Thread Michael Wild
On 12/31/2010 02:48 PM, Michael Hertling wrote: On 12/31/2010 11:56 AM, Michael Wild wrote: On 12/30/2010 07:55 PM, j s wrote: Hello Michael Wild, I regret deciding to go with an Python parser for my application. I use such a small subset of the API, I was hoping to be able to rerelease my

<    1   2   3   4   5   6   7   8   9   10   >