Re: [CMake] strange build problems

2007-04-05 Thread Klaas Gadeyne
On Thu, 5 Apr 2007, Alan W. Irwin wrote: On 2007-04-05 14:59+0200 Klaas Gadeyne wrote: Hi, I'm trying to build a library. I have created 2 options, in order to allow static or dynamic linking in a CMakeLists.txt file . # Settings for building a dynamic library (.so/.dll) OPTION(BUILD_DYNAMIC

Re: [CMake] CVS cmake fails on paraview 3

2007-04-05 Thread John Biddiscombe
Bill I just noticed that one machine (maybe 2) are failing on pv3 nightly dashboard with the same error I got http://paraview.org/ParaView3/Testing/Sites/dash5.kitware/Linux-g++/20070406-0100-Nightly/BuildError.html This may or may not be related, but if it is, then you have a place to start

Re: [CMake] Good sample code for finding and using os x frameworks?

2007-04-05 Thread E. Wing
CMake's framework detection mechanism is now complete. Mike already pointed out how to use FIND_LIBRARY which is all correct. There is a nuance with include paths which I'll describe here. You need to decide about your #include usage pattern. Generally, OS X system frameworks are included as: #in

Re: [CMake] Good sample code for finding and using os x frameworks?

2007-04-05 Thread Mike Jackson
Here is a code snippet from a CMakeLists.txt file that i use to compile some Qt projects. Qt needs the Carbon framework, Quicktime Framework and ApplicationServices. IF(APPLE) #SET(GUI_TYPE MACOSX_BUNDLE) INCLUDE_DIRECTORIES ( /Developer/Headers/FlatCarbon ) FIND_LIBRARY(CARBON_LIBRARY Carbon

[CMake] Good sample code for finding and using os x frameworks?

2007-04-05 Thread Andrew Wagner
Hello- I'm writing some software that I'm trying to keep as portable as possible, but alas will need to use some apple-specific code to query mouse position. Are there any good examples for the current best way of doing this? i.e. should my source have #include header.h> or just #include

Re: [CMake] showing the exact compiler command line

2007-04-05 Thread Werner Smekal
HI, Have a look at flags.cmake in the build tree. Actually look at Modules/Platform/Windows.cmake at the end of the file there is some stuff you can uncomment to fix the problem. you could try to change line 25 of this file SET(CMAKE_END_TEMP_FILE "\n<<") to SET(CMAKE_END_TEMP_FILE "\

Re: [CMake] using cl.exe with GNU make

2007-04-05 Thread Werner Smekal
Hi, you might be interested in this project http://interix-wgcc.sourceforge.net/ regards, Werner Jesper Eskilson wrote: What is the easiest way of using cl.exe with one of the GNU make based generators? I've tried cmake -G "MinGW Makefiles" -DCMAKE_C_COMPILER=cl.exe ... but could never real

Re: [CMake] strange build problems

2007-04-05 Thread Alan W. Irwin
On 2007-04-05 14:59+0200 Klaas Gadeyne wrote: Hi, I'm trying to build a library. I have created 2 options, in order to allow static or dynamic linking in a CMakeLists.txt file . # Settings for building a dynamic library (.so/.dll) OPTION(BUILD_DYNAMIC "Build EML as a dynamic library (Default

[CMake] strange build problems

2007-04-05 Thread Klaas Gadeyne
Hi, I'm trying to build a library. I have created 2 options, in order to allow static or dynamic linking in a CMakeLists.txt file . # Settings for building a dynamic library (.so/.dll) OPTION(BUILD_DYNAMIC "Build EML as a dynamic library (Default)." ON) IF( BUILD_DYNAMIC) ADD_LIBRARY(e

Re: [CMake] showing the exact compiler command line

2007-04-05 Thread Bill Hoffman
Jesper Eskilson wrote: 2007/4/4, Bill Hoffman <[EMAIL PROTECTED]>: > Actually look at Modules/Platform/Windows.cmake at the end of the file there is some stuff you can uncomment to fix the problem. I've tried to comment them out, but the makefiles generated still use @<< ... << to place the c

Re: [CMake] using cl.exe with GNU make

2007-04-05 Thread Bill Hoffman
Michael Hufer wrote: We use cygwin, but that should be mostly the same: -- cmd.exe (or in our case cygwin bash) $ set CC=cl.exe $ set CXX=cl.exe $ cmakesetup --- in cmake setup: select build mode Unix Makefiles and build mode (Debug or Release) configure and creat

Re: [CMake] Proposal for full CMake cross compiler support

2007-04-05 Thread Peter Soetens
On Sunday 04 March 2007 18:08:13 Trevor Kellaway wrote: > Hi, > > I've been working on adding support for a TI DSP compiler to CMake. > Initially I started off down the same route as the current UseEcos.cmake > support, however this didn't really work out for a number of reasons, > one main one bei

[CMake] using cl.exe with GNU make

2007-04-05 Thread Jesper Eskilson
What is the easiest way of using cl.exe with one of the GNU make based generators? I've tried cmake -G "MinGW Makefiles" -DCMAKE_C_COMPILER=cl.exe ... but could never really get it to work. -- /Jesper ___ CMake mailing list CMake@cmake.org http://www.

Re: [CMake] using cl.exe with GNU make

2007-04-05 Thread Michael Hufer
We use cygwin, but that should be mostly the same: -- cmd.exe (or in our case cygwin bash) $ set CC=cl.exe $ set CXX=cl.exe $ cmakesetup --- in cmake setup: select build mode Unix Makefiles and build mode (Debug or Release) configure and create makefile(s) --- $ cd

Re: [CMake] showing the exact compiler command line

2007-04-05 Thread Jesper Eskilson
2007/4/4, Bill Hoffman <[EMAIL PROTECTED]>: Filipe Sousa wrote: > Jesper Eskilson wrote: > >> Hi! >> >> Is there any way to get NMake Makefiles to show the exact compiler >> options used? If I do >> >> nmake VERBOSE=yes >> >> I only see that cl is executed like this: >> >> [...]/cl.exe @commandfi