Re: [CMake] Getting closer building cmake-gui...

2011-05-13 Thread Christian Ehrlicher
Am Freitag, 13. Mai 2011, 17:11:34 schrieb Dick Munroe: I figured out you had to have the QT4 SDK on the system, downloaded and installed that. I configure cmake successfully and the cmake gui shows up in my VS 2005 project. When I try to build it though, the build for cmake-gui fails when

Re: [CMake] QtCreator generator?

2011-11-11 Thread Christian Ehrlicher
Am Samstag, 12. November 2011, 00:05:20 schrieb David Doria: On Fri, Nov 11, 2011 at 5:56 PM, John Drescher dresche...@gmail.com wrote: There should have been a *.sln file that you open.? Not for a Code Blocks -NMake Makefile project. John Ok, I guess I am getting my two threads

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-09-03 Thread Christian Ehrlicher
Am Freitag 03 September 2010, 21:19:28 schrieb Alexander Neundorf: On Friday 03 September 2010, Michael Jackson wrote: ... I was just thinking about this the other day. One specialized area that would be helped by threads would be in some project configuration where we have CMake looking

Re: [CMake] cmake qt4 opengl

2010-12-13 Thread Christian Ehrlicher
Original-Nachricht Datum: Mon, 13 Dec 2010 12:48:23 + Von: luxInteg An: cmake@cmake.org Betreff: [CMake] cmake qt4 opengl Greetings, This is towards banishing my cmake/qt4 idiocy. my CMakeLists.txt has these:- FIND_PACKAGE( Qt4 REQUIRED ) set(

Re: [CMake] CMake with Qt on Windows 7 MinGW

2010-12-23 Thread Christian Ehrlicher
Am 23.12.2010 12:39, schrieb Lukas Woodtli: Everything builds without error. But if I launch my application I get an error : The procedure entry point _Z17qt_message_output9QtMsgTypePKc could not be located in the dynamic link library QtCore4.dll It's a common problem - you're using the

Re: [CMake] Install path problem on MinGW

2008-09-06 Thread Christian Ehrlicher
Jussi Pakkanen schrieb: Hi I'm using CMake for Cuneiform (https://launchpad.net/cuneiform-linux). In my root CMakeLists.txt I have effectively the following: set(LIBDIR lib) And then in source subdirectories I build shared libraries and install them with install(TARGETS [library name]

Re: [CMake] cmake + Qt4 compilation problem

2008-09-09 Thread Christian Ehrlicher
Von: Luis Roberto P. Paula Hello everyone! I'm trying to compile a simple application using Qt4 with cmake, but I'm stucked in this error: [ 33%] Generating ui_mivgui.h Scanning dependencies of target viewer [ 66%] Building CXX object CMakeFiles/viewer.dir/main.o [100%] Building CXX

Re: [CMake] cmake + Qt4 compilation problem

2008-09-09 Thread Christian Ehrlicher
Von: Christian Ehrlicher Von: Luis Roberto P. Paula Hello everyone! I'm trying to compile a simple application using Qt4 with cmake, but I'm stucked in this error: [ 33%] Generating ui_mivgui.h Scanning dependencies of target viewer [ 66%] Building CXX object CMakeFiles

Re: [CMake] Query about FindXXX files

2008-09-17 Thread Christian Ehrlicher
Leo Breebaart schrieb: In CMake 2.6.1, the header for FindTIFF.cmake says: # This module defines # TIFF_INCLUDE_DIR, where to find tiff.h, etc. # TIFF_LIBRARIES, libraries to link against to use TIFF. # TIFF_FOUND, If false, do not try to use TIFF. # also defined, but not for general use are

Re: [CMake] Query about FindXXX files

2008-09-17 Thread Christian Ehrlicher
Leo Breebaart schrieb: Christian Ehrlicher [EMAIL PROTECTED] writes: Leo Breebaart schrieb: In CMake 2.6.1, the header for FindTIFF.cmake says: # This module defines # TIFF_INCLUDE_DIR, where to find tiff.h, etc. # TIFF_LIBRARIES, libraries to link against to use TIFF. # TIFF_FOUND

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Christian Ehrlicher
Steven Samuel Cole schrieb: Eric Noulard schrieb: 2008/9/21 Steven Samuel Cole [EMAIL PROTECTED]: I would like to link a system library into an executable, GTK in this case. What I'm trying to do is include(FindGTK) target_link_libraries(myexec $GTK_LIBRARIES) add_executable (myexec

Re: [CMake] [New Module] FindXXX module for RTI

2008-09-24 Thread Christian Ehrlicher
Gotthard, Petr schrieb: Philip, I have updated the FindRTI.cmake based on your comments. Many thanks. One explanation: I have to manipulate CMAKE_FIND_LIBRARY_PREFIXES because under Windows some RTI libraries have the lib prefix, while others don't. (By default there is no lib prefix under

Re: [CMake] [cmake] windows dll and TARGET_LINK_LIBRARIES

2008-10-10 Thread Christian Ehrlicher
Original-Nachricht Datum: Fri, 10 Oct 2008 09:21:12 +0200 Von: Sören Freudiger [EMAIL PROTECTED] An: cmake@cmake.org Betreff: [CMake] [cmake] windows dll and TARGET_LINK_LIBRARIES Hi How to handle windows dll dependences in CMake. CMakeList.txt =

[CMake] Does CMAKE_DEBUG_POSTFIX not affect executables?

2008-10-27 Thread Christian Ehrlicher
Hi, Looks like CMAKE_DEBUG_POSTFIX does not affect executables anymore: 8-- set(CMAKE_DEBUG_POSTFIX d) add_executable(test main.cpp) #set_target_properties(test PROPERTIES DEBUG_POSTFIX d) get_target_property(dbg_location test DEBUG_LOCATION)

[CMake] get_target_property(...LOCATION) does not handle DEBUG_POSTFIX in vcproj mode

2008-10-27 Thread Christian Ehrlicher
Hi, When creating a VisualStudio project, get_target_property(...LOCATION) does not handle DEBUG_POSTFIX correct. I always get the target name without the debug postfix. I need to do some post build steps but due to the wrong targetname it's currently impossible... so is this a bug or a known

[CMake] FindBoost (once again...)

2008-11-23 Thread Christian Ehrlicher
Hi, FindBoost does not work for me on windows because of a wrong pathname: if (WIN32 AND NOT CYGWIN) set(_boost_PATH_SUFFIX boost_${_boost_VER}) else (WIN32 AND NOT CYGWIN) set(_boost_PATH_SUFFIX boost-${_boost_VER}) endif (WIN32 AND NOT CYGWIN) I installed

Re: [CMake] FindBoost (once again...)

2008-11-23 Thread Christian Ehrlicher
Andreas Pakulat schrieb: On 23.11.08 14:43:19, Christian Ehrlicher wrote: Hi, FindBoost does not work for me on windows because of a wrong pathname: if (WIN32 AND NOT CYGWIN) set(_boost_PATH_SUFFIX boost_${_boost_VER}) else (WIN32 AND NOT CYGWIN) set

Re: [CMake] FindBoost.cmake

2008-12-11 Thread Christian Ehrlicher
Patrick Spendrin schrieb: Hello, as I am just working with some boost headers that do reside in a different include directory, I would like to ask to apply the appended patch. It will not only find versions where headers are in prefix/include/boost/boost_1_34 (which is currently the default

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Christian Ehrlicher
Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. 2009/2/20 Eric Noulard eric.noul...@gmail.com: [...] SET_TARGET_PROPERTIES(PlatformLib PROPERTIES DEFINE_SYMBOL USE_TRACER) Then you shouldn't have to ADD_DEFINITIONS and

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Christian Ehrlicher
Michael Jackson schrieb: On Feb 20, 2009, at 4:59 AM, Eric Noulard wrote: 2009/2/20 Christian Ehrlicher ch.ehrlic...@gmx.de: Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. Obviously I was too fast reading the doc :-) [...] SET_TARGET_PROPERTIES(PlatformLib PROPERTIES

Re: [CMake] Bug? CMP0008 and inability to use .a libraries with MSVC

2009-03-12 Thread Christian Ehrlicher
Von: Braddock Gaskill I am unable to use static GnuWin32 libraries using the lib*.a naming convention with an MSVC 8 2005 target. .a libraries are static libraries for MinGW. When you're using msvc you have to link against .lib. It sometimes works that msvc can also link against a .a but

Re: [CMake] CMake and multiple Microsoft compilers on windows

2009-03-20 Thread Christian Ehrlicher
John Drescher schrieb: On my windows XP box, I have VC6, 2003, 2005 and 2008 installed and I have selected VS2005 for the build however all the CMake checks are happening for VC6. It does not seem to cause any harm but what about header and library differences between the compilers? I mean all

Re: [CMake] CMake and multiple Microsoft compilers on windows

2009-03-20 Thread Christian Ehrlicher
John Drescher schrieb: On Fri, Mar 20, 2009 at 3:02 PM, Christian Ehrlicher ch.ehrlic...@gmx.de wrote: John Drescher schrieb: On my windows XP box, I have VC6, 2003, 2005 and 2008 installed and I have selected VS2005 for the build however all the CMake checks are happening for VC6. It does

Re: [CMake] [Cmake] How to delete cache files? Debug, Release Configuration

2009-03-23 Thread Christian Ehrlicher
Von: Nadir SOUALEM In my CMakeLists.txt, i use such things like: FIND_LIBRARY(LIB_UMFPACK LIB_UMFPACK /opt/UMFPACK5.0.3/build/linux_eclipse/LIB_UMFPACK/${CMAKE_BUILD_TYPE}) So when i run: cmake -DCMAKE_BUILD_TYPE=Debug in my CMakeCache.txt, i find //Path to a library.

Re: [CMake] How can I manage the Qt4's .rc file with CMake?

2009-03-30 Thread Christian Ehrlicher
Kermit Mei schrieb: On Mon, 2009-03-30 at 18:15 +0200, Pau Garcia i Quiles wrote: On Mon, Mar 30, 2009 at 6:04 PM, Kermit Mei kermit@gmail.com wrote: Hello community! I want to change my program's icon on windows, and it wrote with Qt4. I looked up the assistant, it told me the following.

[CMake] Why does cmake adds /STACK:10000000 for msvc linker?

2009-04-12 Thread Christian Ehrlicher
Hi, I don't understand the reason behind this. We've a very huge memory footprint because of this on kde4/windows - kded4.exe has ~30 Threads which means 300MB of stack! Is there an easy way to change this? Thx, Christian ___ Powered by

Re: [CMake] Moving QT getting FIND_PACKAGE( Qt4 ) to work

2009-04-27 Thread Christian Ehrlicher
Am Montag 27 April 2009 18:47:07 schrieb Anders Backman: Hi all. I have a problem where I pack the necessary stuff from qt into a dependency zip file (.h, .lib, .dll and qmake.exe). I have the path to qmake setup, so that qmake can be found. Then I unpack that to some specified directory

Re: [CMake] FindQt4.cmake returns too much irrelevant information

2009-05-07 Thread Christian Ehrlicher
Alan W. Irwin schrieb: I have just discovered that for -DCMAKE_BUILD_TYPE=Debug, the combination of FindQt4.cmake and UseQt4.cmake inserts the keywords debug, optimized, AND general into the QT_LIBRARIES list to divide the list into three sections. But only the debug section of that list is

Re: [CMake] How to build 2 targets from the same source, differing in -D_SWITCHES_ only

2009-08-27 Thread Christian Ehrlicher
Von: Marcel Loose lo...@astron.nl CC: cmake@cmake.org Betreff: Re: [CMake] How to build 2 targets from the same source, differing in -D_SWITCHES_ only Hi Eike, I think the only safe and reliable way to do this is create several build directories, e.g. build/type_1 and build/type_2.

[CMake] Use FIND_LIBRARY to search link for an executable?

2009-09-18 Thread Christian Ehrlicher
Hi, I've an external project which made the decision to create an executable which exports symbols. This means if you want to write a plugin for this project you have to link your plugin against this executable. Now I've the problem that FIND_LIBRARY doesn't find this executable. Does anybody

Re: [CMake] Use FIND_LIBRARY to search link for an executable?

2009-09-18 Thread Christian Ehrlicher
Von: Michael Wild On 18. Sep, 2009, at 8:14, Christian Ehrlicher wrote: Hi, I've an external project which made the decision to create an executable which exports symbols. This means if you want to write a plugin for this project you have to link your plugin against

[CMake] [v2.8-rc1] - Strange new warning in FindQt4.cmake

2009-09-26 Thread Christian Ehrlicher
Hi, I get this warning: -8-- CMake Warning (dev) at cmake/modules/FindQt4.cmake:826 (SET): Local variable QT4_QTUITOOLS_LIBRARY is set to optimized;D:/kde/kde-msvc/lib/QtUiTools.lib;debug;D:/kde/kde-msvc/lib/QtUiTo olsd.lib but the CACHE entry of the

[CMake] [v2.8-rc1] does't find freetype on windows

2009-09-26 Thread Christian Ehrlicher
Hi, FiFreetype with 2.8.0-rc1 (and maybe lower) doesn't find freetype on windows because ft2build.h isn't searched inside include/freetype2 Adding 'include/freetype2' to PATH_SUFFIXES in the first FIND_PATH statement solves the problem. Christian signature.asc Description: OpenPGP digital

[CMake] How to *not* delete generated files on 'make clean'

2010-01-20 Thread Christian Ehrlicher
Hi, I'm using QT4_CREATE_TRANSLATION() to automatically update my ts-files for translations. Now my problem is that cmake is to smart and deletes my generated ts-files during 'make clean'. Is there a way to work around this? In general it's fine that cmake deletes the output of an

Re: [CMake] How to *not* delete generated files on 'make clean'

2010-01-20 Thread Christian Ehrlicher
Von: Hendrik Sattler Zitat von Christian Ehrlicher I'm using QT4_CREATE_TRANSLATION() to automatically update my ts-files for translations. Now my problem is that cmake is to smart and deletes my generated ts-files during 'make clean'. Is there a way to work around

Re: [CMake] Function for visibility definitions

2010-02-10 Thread Christian Ehrlicher
Hilton Medeiros schrieb: Thanks for pointing that mistake, I fixed it. About g++: g++ is gcc with -lstdc++ What is wrong with a simple CMake file? I know what is good about it, if CMake had it built in neither me nor any CMake user would need to write neither a simple header file nor a

[CMake] CTest xml encoding

2010-02-25 Thread Christian Ehrlicher
Hi, I've a problem with the encoding of the build output: Textlt;-30gt;lt;-128gt;lt;-104gt;PROGNAMElt;-30gt;lt;-128gt;lt;-103gt; initialized and declared lt;-30gt;lt;-128gt;lt;-104gt;externlt;-30gt;lt;-128gt;lt;-103gt;/Text The output here is: warning: ‘PROGNAME’ initialized and declared

Re: [CMake] CTest xml encoding

2010-02-25 Thread Christian Ehrlicher
Am 25.02.2010 18:23, schrieb David Cole: Is the Text block exactly the same with cmake 2.6.2 and cmake 2.8.0...? Can you try it with our latest CMake 2.8.1 release candidate? ( http://www.cmake.org/files/v2.8/?C=M;O=D ) It should be properly utf-8 encoded with cmake 2.8.1 -- we fixed some

Re: [CMake] CTest xml encoding

2010-02-26 Thread Christian Ehrlicher
David Cole schrieb: On Thu, Feb 25, 2010 at 1:33 PM, Christian Ehrlicher ch.ehrlic...@gmx.de mailto:ch.ehrlic...@gmx.de wrote: Am 25.02.2010 18:23, schrieb David Cole: Is the Text block exactly the same with cmake 2.6.2 and cmake 2.8.0...? Can you try it with our latest CMake

[CMake] [2.4.7] Problem finding Qt

2007-08-04 Thread Christian Ehrlicher
Hi since 2.4.7 I sometimes get this error: -- Found CLucene library: E:/Qt/clucene-core-0.9.16a/build/lib/clucene-coreUDST.lib -- Found CLucene include dir: E:/Qt/clucene-core-0.9.16a/src -- Found CLucene: E:/Qt/clucene-core-0.9.16a/build/lib/clucene-coreUDST.lib CMake Error: Error in cmake

Re: [CMake] CONFIGURE_FILE won't overwrite existing file?

2007-08-10 Thread Christian Ehrlicher
Christian Convey schrieb: It looks to me like CONFIGURE_FILE is a no-op when the target file already exists *and* has the exact same content that it would have if CONFIGURE_FILE ran. I'm basing me belief by looking running some experiments and looking at timestamps. But this isn't mentioned in

Re: [CMake] Using WIN32 resource files (with MinGW)

2007-08-27 Thread Christian Ehrlicher
Von: Dizzy An: cmake@cmake.org Betreff: [CMake] Using WIN32 resource files (with MinGW) Hello As someone on IRC hinted I added the resource.h/resource.rc files to the project add_executable() source list. However this doesn't seem to work, at least with mingw that I am using on

Re: [CMake] Extend FIND_LIBRARY to properly recognize debug libs

2007-09-19 Thread Christian Ehrlicher
Von: Bill Hoffman Betreff: Re: [CMake] Extend FIND_LIBRARY to properly recognize debug libs Christian Ehrlicher wrote: Hi, For now cmake has the option to set a debug postifx for debug libs/executables by one simple command: set(CMAKE_DEBUG_POSTFIX _d) It would be nice to extend

[CMake] Problem with to long path names on win32

2007-10-11 Thread Christian Ehrlicher
Hi, I currently can't compile kdebase/konqueror because the paths exceeds the max path length: D:\kde-msvc\tmp\kdebase-beta3-3.94.1.20071011\work\kdebase\apps\konqueror\sidebar\trees\konq_sidebartreetoplevelitem.cpp : fatal error C1083: Datei (vom Compiler generiert) kann nicht geöffnet werden:

Re: [CMake] Problem with to long path names on win32

2007-10-11 Thread Christian Ehrlicher
Brad King schrieb: Christian Ehrlicher wrote: Hi, I currently can't compile kdebase/konqueror because the paths exceeds the max path length: D:\kde-msvc\tmp\kdebase-beta3-3.94.1.20071011\work\kdebase\apps\konqueror\sidebar\trees\konq_sidebartreetoplevelitem.cpp : fatal error C1083: Datei (vom

[CMake] FIND_LIBRARY mingw

2007-10-15 Thread Christian Ehrlicher
Hi, it looks like FIND_LIBRARY is using a .lib if it can't find a .a/.dll.a when using the mingw generator (see also http://lists.kde.org/?l=kde-windowsm=119248363310566w=2) Is this a intented behaviour? Christian Ehrlicher signature.asc Description: OpenPGP digital signature

Re: [CMake] FIND_LIBRARY mingw

2007-10-16 Thread Christian Ehrlicher
[EMAIL PROTECTED] schrieb: Hi Christian, it looks like FIND_LIBRARY is using a .lib if it can't find a .a/.dll.a when using the mingw generator (see also http://lists.kde.org/?l=kde-windowsm=119248363310566w=2) Is this a intented behaviour? Normally under windows you will need to link

Re: [CMake] FIND_LIBRARY mingw

2007-10-16 Thread Christian Ehrlicher
Alexander Camek schrieb: Hi Christian That's not true - on windows with mingw you link against .a And cmake also search for .a (and .dll.a) but *also* for .lib which is imho a bug. When I've an import lib for msvc - foo.lib and one for mingw - foo.a I get foo.a for mingw, but as soon as I

Re: [CMake] FIND_LIBRARY mingw

2007-10-16 Thread Christian Ehrlicher
Alexander Camek schrieb: Not really, i can also link with a .lib under mingw. And if you can't link with .lib file under mingw, then it would be a mingw bug at all, because both are endings. That's the point - you can't mix msvc and mingw libs. You can only mix them as long as you stay in

Re: [CMake] win32 rc files - or any other files besides cpp/cxx

2007-10-18 Thread Christian Ehrlicher
Mark Wyszomierski schrieb: Hi, I'm using cmake for a large project that has some win32 gui apps in it. In the main project folder I only include those sub projects if compiling for WIN32. That works fine. The win32 gui apps have a .rc file in a sub-folder named 'res'. How do you ask CMake to

[CMake] Problem with Qt4 and release mode on windows

2007-11-07 Thread Christian Ehrlicher
Hi, when I compile a qt plugin in release mode (and therefore link against release qt lib) I've the problem that cmake does not set -DQT_NO_DEBUG . Because of this Qt assumes we're compiling this plugin in debug mode: qconfig.h: == #if !defined(QT_NO_DEBUG) !defined(QT_DEBUG) # define

Re: [CMake] Problem with Qt4 and release mode on windows

2007-11-08 Thread Christian Ehrlicher
[EMAIL PROTECTED] schrieb: when I compile a qt plugin in release mode (and therefore link against release qt lib) I've the problem that cmake does not set -DQT_NO_DEBUG . In any file you use the Q_EXPORT_PLUGIN2 macro, you can put something like this: #if defined(NDEBUG) # define

Re: Fwd: [CMake] Generating static and shared libs

2007-11-13 Thread Christian Ehrlicher
Alexander Camek schrieb: Hi, I am using here MinGW C and C++ source code to build some libraries. Now what me wonders is that I am getting sometimes static libraries additional to my dynamic libraries. I think you are talking about the import library

Re: Fwd: [CMake] Generating static and shared libs

2007-11-13 Thread Christian Ehrlicher
Alexander Camek schrieb: Hi, No, you *really* should read on www.mingw.org and inform you about import libs. I will do that, thanks. thought that i had understand them :( I already told you all you have to know Windows needs 'static import libs' to link against a shared lib. Nothing

Re: [CMake] Add search paths for FIND_PACKAGE ?

2007-11-19 Thread Christian Ehrlicher
Mike Jackson schrieb: Actually I run into this ALL the time (tiff, expat, hdf5) and I have most of mine stored in non-Standard locations. I end up copying the the FindXXX.cmake into my local project directory and then adding some code like the following: SET(EXPAT_INCLUDE_SEARCH_DIRS

Re: [CMake] setting configuration specific options in visual studio

2007-11-19 Thread Christian Ehrlicher
Von: Salvatore Iovene CC: cmake@cmake.org Betreff: Re: [CMake] setting configuration specific options in visual studio On Nov 20, 2007 1:38 AM, Jesse Corrington [EMAIL PROTECTED] wrote: I searched the archives and couldn't find any good information about this task, which I would assume

Re: [CMake] Win32: exporting symbols for DLLs - simpler method ?

2007-11-22 Thread Christian Ehrlicher
Eric Noulard schrieb: 2007/11/23, Stephen Collyer [EMAIL PROTECTED]: Cmake seems to define, for each library that is built, a symbol of the form library_EXPORTS, which can be used to set up #defines for the __declspec(dllexport/dllimport) stuff that Windows needs. However, this means that

Re: [CMake] Win32: exporting symbols for DLLs - simpler method ?

2007-11-25 Thread Christian Ehrlicher
Eric Noulard schrieb: 2007/11/23, Christian Ehrlicher [EMAIL PROTECTED]: Eric Noulard schrieb: 2) is possible if you use .def file instead of __declspec(dllexport/dllimport) see e.g. http://www.codeproject.com/dll/SimpleDllP3.asp This is the old way to export functions and imho

Re: [CMake] DLL import/export flag differentiation

2007-11-25 Thread Christian Ehrlicher
it inherits the -DDLL_EXPORT flag from the top. You can you set_target_properties for this. E.g.: set_target_properties(kdewin32 PROPERTIES DEFINE_SYMBOL MAKE_KDEWIN32_LIB ) HTH Christian Ehrlicher ___ CMake mailing list CMake@cmake.org http

[CMake] Specifying different flags for debug/release mode

2007-12-10 Thread Christian Ehrlicher
Hi, ist there something like target_link_libraries(debug fooD.lib release foo.lib) possible for flags? It's needed to make Qt plugins work (yes, you can't properly build Qt plugins on windows with cmake). Christian -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:

Re: [CMake] Specifying different flags for debug/release mode

2007-12-10 Thread Christian Ehrlicher
Von: Pau Garcia i Quiles Quoting Christian Ehrlicher Hi, ist there something like target_link_libraries(debug fooD.lib release foo.lib) possible for flags? It's needed to make Qt plugins work (yes, you can't properly build Qt plugins on windows with cmake). From http

Re: RE: [CMake] Compilation speed with CMake/NMake combination, making it faster?

2007-12-11 Thread Christian Ehrlicher
Von: Josef Karthauser [EMAIL PROTECTED] -Original Message- From: Torsten Martinsen [mailto:[EMAIL PROTECTED] Sent: 11 December 2007 09:08 To: Josef Karthauser; CMake ML Subject: RE: [CMake] Compilation speed with CMake/NMake combination, making it faster? * We're

[CMake] [cmake 2.5] Double linking?

2008-01-06 Thread Christian Ehrlicher
Hi, When linking a lib with cmake 2.5cvs it looks like the lib is linked twice: --8--- Linking CXX shared library ..\bin\kdeui.dll Bibliothek ..\bin\kdeui.lib und Objekt ..\bin\kdeui.exp werden erstellt. Bibliothek ..\bin\kdeui.lib und Objekt ..\bin\kdeui.exp werden

Re: [CMake] [cmake 2.5] Double linking?

2008-01-07 Thread Christian Ehrlicher
Von: Bill Hoffman Christian Ehrlicher wrote: Hi, When linking a lib with cmake 2.5cvs it looks like the lib is linked twice: --8--- Linking CXX shared library ..\bin\kdeui.dll Bibliothek ..\bin\kdeui.lib und Objekt ..\bin\kdeui.exp werden erstellt

Re: [CMake] Install Problem.

2008-01-29 Thread Christian Ehrlicher
Von: Surya Kiran Gullapalli Hi all, I'm trying to install a shared library using INSTALL Method on win32 platform. (Visual Studio 2005) But what i found was only the dll is getting installed. the import library .lib is not getting installed. I've specified the RUNTIME and LIBRARY

Re: [CMake] an easy way to clean cmake generated files?

2008-03-25 Thread Christian Ehrlicher
Von: Ákos Maróy Philip Lowman wrote: I've filed a feature request for this (i.e. a distclean target for CMake). It keeps coming up on the mailing list so it probably would make a nice addition to CMake. I've needed it before too when stubborn coworkers really want to keep using

Re: [CMake] How to make Visual Studio .vcproj with relative paths

2008-03-25 Thread Christian Ehrlicher
Von: Olaf van der Spek On Tue, Mar 25, 2008 at 12:58 AM, Alexander Neundorf [EMAIL PROTECTED] wrote: Not really. Why do you actually want to ship VS project files ? To avoid a dependency on cmake. The library user probably doesn't have cmake installed and it would be nice if he could

Re: [CMake] CMake 2.6.0 RC 6 ready for testing

2008-04-03 Thread Christian Ehrlicher
Von: Mathieu Malaterre On Wed, Apr 2, 2008 at 8:13 PM, Bill Hoffman wrote: I am happy to announce that CMake 2.6.0 RC6 is ready for testing. You can find the source and binaries here: http://www.cmake.org/files/v2.6/. Here is the list of changes for the 2.6.0 branch so far:

Re: [CMake] Question about MSVC link-process

2008-04-09 Thread Christian Ehrlicher
Von: Ilya Shvetsov Are libA.lib targets built by cmake in the same solution? No. This is library from extranal engine. The first thing which is obviously wrong is that you write 'foo.lib' instead of 'foo'. It pins the whole thing to msvc and I'm really gald that it works :) Also you should

Re: [CMake] FindQT.cmake on windows

2008-04-09 Thread Christian Ehrlicher
Von: Mike Arthur On Wednesday 09 April 2008 10:37:39 Andreas Pakulat wrote: Thats because qmake is in the PATH on unix usually, I think it works autoamtically on windows too if the Qt/bin path is listed in the PATH environment variable. Is there any reason FindQT couldn't just look (by

Re: [CMake] add_executable and WIN32 option

2008-04-10 Thread Christian Ehrlicher
Von: Alin M Elena Hi I try to use WIN32 option with cmake 2.6 rc6 snip MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external symbol [EMAIL PROTECTED] referenced in function ___tmainCRTStartu p Read the wiki faq:

Re: [CMake] VS8.0 CompileAs

2008-04-15 Thread Christian Ehrlicher
Von: Philippe Fremy Hi, For one of my project, I need to compile files with .c extension as C++ files. It's an uncommon need but it exists. In Visual Sturio, there is a compiler option, /TP that does exactly this. In Visual Studio 2005 project files, it seems to translate into

Re: [CMake] Embed an icon into a program

2008-05-06 Thread Christian Ehrlicher
Von: Steven Van Ingelgem Hi, To embed an icon into a program on Windows with VS, you just add it to the source files. This approach however doesn't seem to work with MinGW makefiles (on windows too). Is there anyway I can make this work? I know there is a tool windres which

[CMake] Strange behaviour of FindCurses.cmake (and cmake 2.6.0?)

2008-05-07 Thread Christian Ehrlicher
Hi, when curses is searched twice, the second search fails: -8 message(STATUS CURSES_HAVE_CURSES_H: ${CURSES_HAVE_CURSES_H}) message(STATUS CURSES_INCLUDE_PATH: ${CURSES_INCLUDE_PATH}) FIND_PACKAGE(Curses REQUIRED) message(STATUS CURSES_HAVE_CURSES_H:

[CMake] DEFINE_SYMBOL and static libs

2008-05-14 Thread Christian Ehrlicher
Hi, is there a rationale behind the fact that DEFINE_SYMBOL for static libs is ignored? I do understand that (the automatic) MAKE_foo_LIB is not needed here but I don't see a reason why to ignore a user-defined value. The problem is that I want to compile a lib in static and shared mode and

Re: [CMake] MinGW and cmake issues...

2008-05-17 Thread Christian Ehrlicher
Phil Pellouchoud schrieb: I have been trying to get cmake to work with MinGW. I have trolled around the net and looked for clues and tried a bunch of things without success. Here are the particulars: snip Any ideas? Did you try to compile a simple hello world from command line? Does

Re: [CMake] MinGW and cmake issues...

2008-05-17 Thread Christian Ehrlicher
Phil Pellouchoud schrieb: I did try to compile a simple hello world program, and I can do it on the command line: gcc -o test test.cpp Builds and runs fine. I am using Windows XP SP2 GCC version is this: S:\software\packages\utility\buildgcc -v Using built-in specs. Target: i386-pc-mingw32

Re: [CMake] cmake 2.6.0, breakages

2008-05-19 Thread Christian Ehrlicher
Von: Andreas Pakulat On 19.05.08 02:06:51, Dmitry Marakasov wrote: * Andreas Pakulat ([EMAIL PROTECTED]) wrote: snip CMakeFiles/Memonix.dir/CMakeFiles/CompilerIdCXX/CMakeCXXCompilerId.o gets into project object files (seems like it's because

[CMake] cmake 2.6 and find_library with MinGW generator

2008-05-20 Thread Christian Ehrlicher
Hi, during your new warning when mixing libs in target_link_libraries (CMP0003) I changed target_link_libraries(foo ws2_32) to find_library(WS2_32_LIBRARY ws2_32) target_link_libraries(foo ${WS2_32_LIBRARY}) but now cmake finds ws2_32.dll in system32 instead the correct one (ws2_32.dll.a /

Re: [CMake] CMake and MinGW on Windows

2008-05-21 Thread Christian Ehrlicher
Von: Shriramana Sharma Hello. I would like to use CMake to build some CMake-ready Qt-based applications on Windows using MinGW. I get an error saying Make was not found. I used -DCMAKE_MAKE_PROGRAM=path to mingw. But then I got an error saying C compiler could not compile the test

Re: [CMake] cmake 2.6 and find_library with MinGW generator

2008-05-21 Thread Christian Ehrlicher
Von: Hendrik Sattler Christian Ehrlicher schrieb: during your new warning when mixing libs in target_link_libraries (CMP0003) I changed target_link_libraries(foo ws2_32) to find_library(WS2_32_LIBRARY ws2_32) target_link_libraries(foo ${WS2_32_LIBRARY}) but now cmake finds ws2_32

Re: [CMake] cmake 2.6 and find_library with MinGW generator

2008-05-21 Thread Christian Ehrlicher
Von: Hendrik Sattler Christian Ehrlicher schrieb: Von: Hendrik Sattler Christian Ehrlicher schrieb: during your new warning when mixing libs in target_link_libraries (CMP0003) I changed target_link_libraries(foo ws2_32) to find_library(WS2_32_LIBRARY ws2_32

Re: [CMake] cmake 2.6 and find_library with MinGW generator

2008-05-21 Thread Christian Ehrlicher
Von: Bill Hoffman Christian Ehrlicher wrote: Hi, during your new warning when mixing libs in target_link_libraries (CMP0003) I changed target_link_libraries(foo ws2_32) to find_library(WS2_32_LIBRARY ws2_32) target_link_libraries(foo ${WS2_32_LIBRARY}) but now cmake finds

Re: [CMake] cmake 2.6 and find_library with MinGW generator

2008-05-21 Thread Christian Ehrlicher
Bill Hoffman schrieb: Christian Ehrlicher wrote: I understood the warning - I know that it is not mandatory. But how useful is a warning when the only way to get rid of them is to disable it? I either have to fix all places (including the system libs ) or disable it and don't care

Re: [CMake] CMake questions

2008-05-22 Thread Christian Ehrlicher
Von: dizzy On Thursday 22 May 2008 12:03:01 Oleg Puchinin wrote: Hello ! snip 2. How to build target with debug info ? There are several solutions here. A not very portable aproach is to add whatever compiler flags you wish to the compile command used, using cmake's

[CMake] cmake (no longer?) complains about missing files

2008-05-27 Thread Christian Ehrlicher
Hi, I don't know if it's the intended behaviour or not: I create a file on build time with add_custom_command. ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_BINARY_DIR}/my_source.cpp COMMAND makeMySource ARGS ${CMAKE_BINARY_DIR}/my_source.cpp ) and add it to an executable:

Re: [CMake] [PATCH] FindQt4.cmake qt4_automoc improvements

2008-05-29 Thread Christian Ehrlicher
Tanguy Krotoff schrieb: On Thu, May 29, 2008 at 8:48 PM, [EMAIL PROTECTED] wrote: The bug that I got with QT_DEBUG/QT_NO_DEBUG not being defined is a pretty hard one. I simply would like other devs not to spend time on such stupid issues, so how can this be prevented? We hit this problem some

Re: [CMake] [PATCH] FindQt4.cmake qt4_automoc improvements

2008-06-01 Thread Christian Ehrlicher
Alexander Neundorf schrieb: On Thursday 29 May 2008, Christian Ehrlicher wrote: Tanguy Krotoff schrieb: On Thu, May 29, 2008 at 8:48 PM, [EMAIL PROTECTED] wrote: The bug that I got with QT_DEBUG/QT_NO_DEBUG not being defined is a pretty hard one. I simply would like other devs not to spend

Re: [CMake] Import library not generated under Visual Studio

2008-06-05 Thread Christian Ehrlicher
Von: Martin Apel Hi all, I am trying to port a project using CMake 2.6 from Linux to Windows. The project build works without problems under Linux. However when trying to build the project inside Visual Studio 8 after having generated the project files using CMake, no import libraries

Re: [CMake] shared libraries .lib

2008-06-10 Thread Christian Ehrlicher
Von: Ingrid Kemgoum hi, i'm trying to build a c++ project and i have a dynamic library. it is created a .dll but MSVC ask for a .lib. Is there a way to produce both .dll and .lib from the library? Thanks and regards. You have to do it by your own by defining the functions which you want

Re: [CMake] shared libraries .lib .dll

2008-06-11 Thread Christian Ehrlicher
Von: Ingrid Kemgoum hi i've done what you told be (not to define de -D..) and i do have a .lib too but the problem of the link with the dll still exist. maybe it's my fault there is my code in the three directories(i'm using visual 8 2005 and cmake 2.6) When you don't define the

Re: [CMake] shared libraries .lib .dll

2008-06-11 Thread Christian Ehrlicher
Von: Ingrid Kemgoum i'm very sorry but it's like chinese for me. u told me not to define the symbol so i skip the SET_TARGET_PROPERTIES(Hello PROPERTIES DEFINE_SYMBOL HELLO_EXPORTS) in the library directory and when i dont use it i have 2 link problems like this: LINK :

Re: [CMake] eclipse nmake include folders

2008-06-17 Thread Christian Ehrlicher
Alexander Neundorf schrieb: On Tuesday 17 June 2008, Bill Hoffman wrote: Alexander Neundorf wrote: Currently, for the NMake generator one needs to have sourced the vsvars32.bat file to set up the environment so that cmake can find the tools etc. Since, the user sources this file at CMake time

Re: [CMake] eclipse nmake include folders

2008-06-17 Thread Christian Ehrlicher
Bill Hoffman schrieb: Alexander Neundorf wrote: On Tuesday 17 June 2008, Christian Ehrlicher wrote: ... How do you define which vsvars32.bat (or vsvars64.bat) to use? I've more than one compiler on my system... The first time you would have to run cmake in the right environment (i.e. where

Re: [CMake] eclipse nmake include folders

2008-06-18 Thread Christian Ehrlicher
Von: Mehdi Rabah On Tue, Jun 17, 2008 at 9:24 PM, Christian Ehrlicher [EMAIL PROTECTED] wrote: Bill Hoffman schrieb: Alexander Neundorf wrote: On Tuesday 17 June 2008, Christian Ehrlicher wrote: ... How do you define which vsvars32.bat (or vsvars64.bat) to use? I've more

Re: [CMake] porting to cmake 2.6 from 2.4.6

2008-06-19 Thread Christian Ehrlicher
Von: David Blado Hi all, I recently took up the task of porting to 2.6 (again…fell off my plate for a while ☺ ) I’m seeing this when running cmake: CMake Error: Cannot determine link language for target libraryX. All of the source files listed are cpp files: SET(SRCS fileA )

[CMake] Add_definitions() also affects RC_FLAGS ?

2008-06-22 Thread Christian Ehrlicher
Hi, We've something like this in one of our scripts: add_definitions(-EHsc) and we add a .rc - file to the sources. Now rc.exe fails because of unknown command '-EHsc' because add_defintions() is also dded to RC_FLAGS... :( [ 85%] Building RC object ksirk/ksirk/CMakeFiles/ksirk.dir/ksirk.res

Re: [CMake] Add_definitions() also affects RC_FLAGS ?

2008-06-22 Thread Christian Ehrlicher
Bill Hoffman schrieb: Christian Ehrlicher wrote: Hi, We've something like this in one of our scripts: add_definitions(-EHsc) and we add a .rc - file to the sources. Now rc.exe fails because of unknown command '-EHsc' because add_defintions() is also dded to RC_FLAGS... :( [ 85%] Building

Re: [CMake] make arguments

2008-07-23 Thread Christian Ehrlicher
Von: Milan Dorak I can't find in documentation or anywhere else, how can i pass argument to make command. I need 'make -j 3'. don't care if it's in CMakeLists.txt or CTest script. Since when does cmake executes make directly? It's only creating makefiles for make... Christian -- GMX

Re: [CMake] The right way to link a library from multiple directories

2008-07-24 Thread Christian Ehrlicher
Sebastian Krause schrieb: Andreas Pakulat [EMAIL PROTECTED] wrote: Thats not going to work on all platforms. There are various platforms which don't allow static libs to be linked into shared libs. But it should be possible to gather the sources in the subdirs into a variable that the parent

  1   2   >