[cmake-developers] [CMake 0012467]: Both FindSDL.cmake and FindSDL_mixer.cmake does not honor REQUIRED

2011-09-19 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12467 == Reported By:ogronom Assigned To:

[cmake-developers] [CMake 0012469]: RPM COMPONENT packaging support for pre/post install scripts is weak

2011-09-19 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12469 == Reported By:Chip Christian Assigned To:

Re: [cmake-developers] Automoc in cmake

2011-09-19 Thread Alexander Neundorf
On Sunday, September 18, 2011 07:11:58 PM Marcus D. Hanwell wrote: On Sun, Sep 18, 2011 at 6:39 AM, Alexander Neundorf neund...@kde.org wrote: On Saturday, September 17, 2011 07:16:28 PM Stephen Kelly wrote: Stephen Kelly steveire@... writes: Alexander Neundorf wrote: Would it

Re: [CMake] export() vs. install(export...)

2011-09-19 Thread Michael Wild
On 09/19/2011 01:14 AM, Tim Gallagher wrote: Hi, I've been trying to figure out the exact differences between the export() and install(export ...) functions and I have some questions still. From the documentation, EXPORT() makes available the build tree for a given target and puts the

Re: [CMake] export() vs. install(export...)

2011-09-19 Thread Tim Gallagher
It does make sense and answered most of my questions. Maybe rather than asking more questions, I can make some suggestions based on what I'm trying to do and see what people think: 1. It would be nice to be able to register installation trees in the registry so the user does not have to

[CMake] Determining IntDir property for Visual Studio 10

2011-09-19 Thread Perry Ismangil
Hi, I am trying to set the IntDir property in VS 10 project generation, I could not find the right variable/property to set. Inspecting the CMake generator code, it seems it is rather hardcoded, it doesn't get the value externally. Is this correct? Using CMake 2.8.5. -- Perry Ismangil

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Sun, Sep 18, 2011 at 16:43, Eric Noulard eric.noul...@gmail.com wrote: You may tell CMake that this file is generated as part of the build: set_source_files_properties(your_header.h PROPERTIES GENERATED TRUE) Thanks Eric, this is indeed the property I was looking for to get the right

Re: [CMake] User generated header file

2011-09-19 Thread Eric Noulard
2011/9/19 Perry Ismangil pe...@pjsip.org: On Sun, Sep 18, 2011 at 16:47, C. Meissa carsten.mei...@gmx.de wrote: Do you want the user to manually add the header, or do you want cmake to create it? User will manually add it before compile, so Eric mentioned setting the GENERATED property to

Re: [CMake] linker default library path /usr/local/lib on OSX

2011-09-19 Thread Michael Jackson
My guess is that the audio library has an install path of /usr/local/lib encoded in it. Try posting tue output of otool for the actual audio library. - Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] User generated header file

2011-09-19 Thread John Drescher
Do you want the user to manually add the header, or do you want cmake to create it? User will manually add it before compile, so Eric mentioned setting the GENERATED property to true, it works. The fact is it works the way you want, which is good, but beside that why would it be better

[CMake] Cross compiling in Win32 environment doesn't work

2011-09-19 Thread Martin Kupke
I'm using CMake in version 2.8.5 and just want to cross compile with a decicated Compiler / Linker set on my Windows machine. Of course I've read the FAQ and the Tutorial, afterwards I started trying to use CMake on a DOS (cmd.exe) command line interface with CMakeLists.txt and a toolchain

Re: [CMake] Cross compiling in Win32 environment doesn't work

2011-09-19 Thread Eric Noulard
2011/9/19 Martin Kupke martin.ku...@novero.com: I'm using CMake in version 2.8.5 and just want to cross compile with a decicated Compiler / Linker set on my Windows machine. Of course I've read the FAQ and the Tutorial, afterwards I started trying to use CMake on a DOS (cmd.exe) command line

[CMake] Windows: install conditionnaly an executable

2011-09-19 Thread ycollette . nospam
Hello, I would like to do this kind of installation: My package contains several executable with a version number by application - first install: install all the application and write a version number into the windows registry - update install: install only the application which have a

Re: [CMake] Cross compiling in Win32 environment doesn't work

2011-09-19 Thread Martin Kupke
If adding the parameter -G "NMake Makefiles" to my command line, then the output is different...but still errors: * snip output * Cross Compiling -- The C compiler identification is unknown -- The CXX compiler identification is

Re: [CMake] Cross compiling in Win32 environment doesn't work

2011-09-19 Thread Martin Kupke
My problem (the error) already occurs in the toolchain file, this means before the CMakeLists.txt is read. So far it is total independent of the entries in the CMakeLists.txt! I have added the line: message ("Mein CMakeLists.txt File") in top of my

Re: [CMake] Cross compiling in Win32 environment doesn't work

2011-09-19 Thread Eric Noulard
2011/9/19 Martin Kupke martin.ku...@novero.com My problem (the error) already occurs in the toolchain file, this means before the CMakeLists.txt is read. So far it is total independent of the entries in the CMakeLists.txt! I have added the line: message (Mein CMakeLists.txt File) in top

Re: [CMake] Cross compiling in Win32 environment doesn't work

2011-09-19 Thread Benjamin Ruard
You can use the following commands to know what are compilers used in the CMakeLists.txt: message(C compiler: ${CMAKE_C_COMPILER}) message(C++ compiler: ${CMAKE_CXX_COMPILER}) Moreover, you can set them: set(CMAKE_CXX_COMPILER ...) regards Benjamin JEANTY-RUARD Le lundi 19 septembre 2011 à

Re: [CMake] Windows: install conditionnaly an executable

2011-09-19 Thread Eric Noulard
2011/9/19 ycollette.nos...@free.fr: Hello, I would like to do this kind of installation: My package contains several executable with a version number by application - first install: install all the application and write a version number into the windows registry - update install:

Re: [CMake] Windows: install conditionnaly an executable

2011-09-19 Thread Eric Noulard
Please do not drop the ML address. 2011/9/19 ycollette.nos...@free.fr: How can I read with cmake the registry key dynamically in the installer and use this version number to install conditionnaly some applications ? You need to have a look at your specific installer language (seems to be

Re: [CMake] Determining IntDir property for Visual Studio 10

2011-09-19 Thread David Cole
On Mon, Sep 19, 2011 at 5:25 AM, Perry Ismangil pe...@pjsip.org wrote: Hi, I am trying to set the IntDir property in VS 10 project generation, I could not find the right variable/property to set. Inspecting the CMake generator code, it seems it is rather hardcoded, it doesn't get the value

Re: [CMake] Cross compiling in Win32 environment doesn't work

2011-09-19 Thread Martin Kupke
That's a hint, I changed my toolchain file "toolchain_ppc.cmake" to the following: INCLUDE(CMakeForceCompiler) set(CMAKE_SYSTEM_NAME "Discovery") if(CMAKE_CROSSCOMPILING) message("Cross Compiling") endif(CMAKE_CROSSCOMPILING) # which compilers to

Re: [CMake] Determining IntDir property for Visual Studio 10

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 15:36, David Cole david.c...@kitware.com wrote:  http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:ARCHIVE_OUTPUT_DIRECTORY  http://cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:LIBRARY_OUTPUT_DIRECTORY  

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 12:47, Eric Noulard eric.noul...@gmail.com wrote: The fact is it works the way you want, which is good, but beside that why would it be better for the user to face a failing build (because he forgot to create the file) than face a failing CMake run (because he forgot

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 14:13, John Drescher dresche...@gmail.com wrote: My question is can't you have CMake generate the header for the user instead of them supplying a file? Is it just defines in this header? It's basically user/site-specific defines that is based on user preferences and

[CMake] Where to declare the CMAKE_C_FLAGS for cross compiling

2011-09-19 Thread Martin Kupke
I'm using a toolchain file with the CMAKE_SYSTEM_NAME Generic, because I want to cross compile on a Windows XP machine for a PPC (PowerPC) processor. From my point of view it should be in a way as in the documentation for the SDCC. My toolchain file toolchain_ppc.cmake is setup:

Re: [CMake] User generated header file

2011-09-19 Thread John Drescher
On Mon, Sep 19, 2011 at 14:13, John Drescher dresche...@gmail.com wrote: My question is can't you have CMake generate the header for the user instead of them supplying a file? Is it just defines in this header? It's basically user/site-specific defines that is based on user preferences and

Re: [CMake] providing your own exp file on AIX

2011-09-19 Thread Michael Hertling
On 09/14/2011 04:38 PM, Domen Vrankar wrote: Hi, I'm trying to use my own exp file for linking of a shared library on AIX. Currently CMake generates an objects.exp file and I don't know how to replace it with my own that was used in Makefile files before I switched to CMake and contains

Re: [CMake] User generated header file

2011-09-19 Thread Michael Jackson
On Sep 19, 2011, at 11:58 AM, Perry Ismangil wrote: On Mon, Sep 19, 2011 at 12:47, Eric Noulard eric.noul...@gmail.com wrote: The fact is it works the way you want, which is good, but beside that why would it be better for the user to face a failing build (because he forgot to create the

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 17:04, John Drescher dresche...@gmail.com wrote: To me this sounds like something that would be perfect to do with CMake options and some usage of find_libraray, maybe some environment variables to help out. However I do not mean to tell you how to configure your

Re: [CMake] User generated header file

2011-09-19 Thread Perry Ismangil
On Mon, Sep 19, 2011 at 17:26, Michael Jackson mike.jack...@bluequartz.net wrote: Aren't the Generated VS10 Solutions _still_ dependent on CMake or has that changed? Not that I can see on CMake 2.8.5, so far I suppressed generating the ZERO_CHECK target which automatically re-runs CMake if it

Re: [CMake] Specify the link command in CMake

2011-09-19 Thread Michael Hertling
On 09/13/2011 11:01 AM, Federico Carminati wrote: Hello Eric, sorry for not having changed the subject, I realize it only now. Thanks for your answer. I am trying to use clang / clang++. This works if I do cmake $MY_SOURCE_DIRECTORY -DCMAKE_C_COMPILER=clang

Re: [CMake] Where to declare the CMAKE_C_FLAGS for cross compiling

2011-09-19 Thread Martin Kupke
For cross compiling I need to set the variables "CMAKE_C_FLAGS_INIT" and "CMAKE_CXX_FLAGS_INIT" in the Platform Generic-dcc file. Not sure why I need to configure CXX compiler and flags, even I don't use them...but that's another story. Now the CMake tool passes and

[CMake] How to setup toolchain correctly for C compiler only (no CXX present for target)

2011-09-19 Thread Martin Kupke
Is there a way to setup the toolchain file in a way to work only with a C compiler? What if no C++ compiler is present (or wanted) for the target HW? E.g. we use standard C compiler for different processors on our embedded solutions. We need to buy the compiler for C and / or C++, but mostly we

Re: [CMake] How to setup toolchain correctly for C compiler only (no CXX present for target)

2011-09-19 Thread Rolf Eike Beer
Am Montag, 19. September 2011, 18:58:49 schrieb Martin Kupke: Is there a way to setup the toolchain file in a way to work only with a C compiler? What if no C++ compiler is present (or wanted) for the target HW? E.g. we use standard C compiler for different processors on our embedded

[CMake] Fwd: How to setup toolchain correctly for C compiler only (no CXX present for target)

2011-09-19 Thread Bjørn Forsman
Forgot to CC list... -- Forwarded message -- From: Bjørn Forsman bjorn.fors...@gmail.com Date: 2011/9/19 Subject: Re: [CMake] How to setup toolchain correctly for C compiler only (no CXX present for target) To: Martin Kupke martin.ku...@novero.com On 19 September 2011 18:58,

[CMake] Second post: find_package with config file always set xyz_FOUND to true?

2011-09-19 Thread Anton Deguet
Hello, I haven't heard anything following my previous post. Is there any chance someone could provide some guidance? Sincerely, Anton On Aug 29, 2011, at 6:02 PM, Anton Deguet wrote: Hello, I am trying to use the following syntax: find_package (xyz REQUIRED xyz1 xyz2) using a config

Re: [CMake] Second post: find_package with config file always set xyz_FOUND to true?

2011-09-19 Thread Michael Hertling
On 09/19/2011 07:09 PM, Anton Deguet wrote: Hello, I haven't heard anything following my previous post. Is there any chance someone could provide some guidance? Sincerely, Anton On Aug 29, 2011, at 6:02 PM, Anton Deguet wrote: Hello, I am trying to use the following syntax:

Re: [CMake] Second post: find_package with config file always set xyz_FOUND to true?

2011-09-19 Thread Anton Deguet
Hi Michael, Sorry, I mistakenly trashed your previous answer, thank you for both replies. It looks like I am not the first one to raise that question. If I understand well, the primary issue is to agree on the semantic of: find_package (xyz COMPONENTS c1 c2) if (xyz_FOUND) … xyz_FOUND can

Re: [CMake] linker default library path /usr/local/lib on OSX

2011-09-19 Thread amine bezzarga
Yeah, I tried the NO_DEFAULT_PATH option but without success. My target_link_library command look like this: target_link_libraries(${CMAKE_PROJECT_NAME} ${OGRE_LIBRARIES} ${OGRE_PLUGIN_LIBRARIES} ${Boost_LIBRARIES} ${OIS_LIBRARIES} ${IrrKlang_LIBRARIES}) Here is the otool output of the sound

Re: [CMake] linker default library path /usr/local/lib on OSX

2011-09-19 Thread Michael Jackson
Yes. Who ever built the irrklang library has set an install_name of /usr/local/lib on that library. So it does not matter where the library is located. OS X thinks it is in /usr/local/lib. You need to fix how that library is compiled and linked. Does that make it clear what is going on? -

Re: [CMake] Cross compiling in Win32 environment doesn't work

2011-09-19 Thread Alexander Neundorf
Hi, can you please adjust your mail client so it doesn't send HTML mails ? On Monday, September 19, 2011 04:57:32 PM Martin Kupke wrote: That's a hint, I changed my toolchain file toolchain_ppc.cmake to the following: INCLUDE(CMakeForceCompiler) set(CMAKE_SYSTEM_NAME Discovery)

[Cmake-commits] CMake branch, next, updated. v2.8.5-1915-gbeb2cd7

2011-09-19 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 beb2cd74fc7de307e76a69c3cc2adc20b7ef248f (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.5-1918-g33e1a63

2011-09-19 Thread Marcus D . Hanwell
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 33e1a63ca1084abf76939f8a4a6bf112d69abcde (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.5-1924-ge6636f4

2011-09-19 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 e6636f4a232a30837ea242942b4eae0bf9b3b7d7 (commit) via