2007/6/12, Brandon Van Every <[EMAIL PROTECTED]>:
On some platforms, I bet the underlying linker AR can't even do it. I
know it can't put static libraries inside of static libraries, thats' why
everyone wants "convenience libraries" and I had to work on all that object
file fakery. Possibly i
Am Dienstag 12 Juni 2007 17:25 schrieb Vitor Vasconcelos Araujo Silva:
> > Have a look here at the _SET_FANCY macro:
> > http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cm
> >ake?revision=668049&view=markup
> > http://www.cmake.org/mailman/listinfo/cmake
>
> Hello Alex an
On Tuesday 12 June 2007 16:21, Trevor Kellaway wrote:
> Alex,
>
> > I had another look at Freescale-chc12.cmake.
> >
> > I guess you have different projects using this controller ?
>
> Yes, each system will generally have its own custom link.prm.
>
> > In the file you have the cache variables HC12_
Alex,
> I had another look at Freescale-chc12.cmake.
>
> I guess you have different projects using this controller ?
Yes, each system will generally have its own custom link.prm.
> In the file you have the cache variables HC12_LINK_PRM_FILE,
> HC12_MEMORY_MODEL_LETTER and HC12_CORE. I guess th
Hi, is there something I'm missing here? I can't get the changed flags to be
applied to the library (ADD_LIBRARY(expon "ExponSSE.cc")).
James
James Bigler wrote:
I also tried making it its own library, but that didn't work:
ADD_LIBRARY(mylib ${source_files})
SET(CMAKE_CXX_FLAGS_RELEASE_SAVE
Brandon Van Every wrote:
On 6/9/07, Joshua Jensen <[EMAIL PROTECTED]> wrote:
What is Kitware's interest in full Visual Studio C# support in CMake?
10 months ago, Brad King wrote in
http://public.kitware.com/pipermail/cmake/2006-August/010528.html
is there any development (planned) on C# (Cshar
On Sunday 10 June 2007 17:38, Trevor Kellaway wrote:
> Note that in my example Freescale.cmake and Freescale-chc12-hc12.cmake
> are effectively empty, as all content seems to logically belong in
> Freescale-chc12.cmake in this case.
I had another look at Freescale-chc12.cmake.
I guess you have di
I also tried making it its own library, but that didn't work:
ADD_LIBRARY(mylib ${source_files})
SET(CMAKE_CXX_FLAGS_RELEASE_SAVED ${CMAKE_CXX_FLAGS_RELEASE} )
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g3" )
ADD_LIBRARY(expon "ExponSSE.cc")
SET(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE_SAVED}
Filip Brcic wrote:
Yes, and for increased readability, I would suggest you to use:
add_definitions(-DFOO="\\"foo\\"")
so that you get
gcc -DFOO="\"foo\"" yourfile.c
when CMake compiles your file and, obviously, FOO="foo" in C.
On the sidenote, how does that relate to various shells? I'm usi
No that doesn't work.
Well ... you could start out by setting CMAKE_CXX_FLAGS_RELEASE to ""
and then using the SET_SOURCE_FILES_PROPERTIES to add the flags you need
to every file .. the file that
SET(CMAKE_CXX_FLAGS_RELEASE_SAVED ${CMAKE_CXX_FLAGS_RELEASE} )
SET(CMAKE_CXX_FLAGS_RELEASE "" )
So I can't set this for a single source file, but rather a library?
Can I add additional sources to the library after I added the library:
ADD_LIBRARY(mylib ${other_sources})
SET(CMAKE_CXX_FLAGS_RELEASE_SAVED ${CMAKE_CXX_FLAGS_RELEASE} )
SET(CMAKE_CXX_FLAGS_RELEASE "/MT /Ox /Ob1 /DNDEBUG" )
AD
Put it in that one file like this:
SET(CMAKE_CXX_FLAGS_RELEASE_SAVED ${CMAKE_CXX_FLAGS_RELEASE} )
SET(CMAKE_CXX_FLAGS_RELEASE "/MT /Ox /Ob1 /DNDEBUG" )
.. add the library or target
SET(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE_SAVED} )
-Original Message-
From: James Bigler [ma
Дана уторак 12 јун 2007, Alexander Neundorf је написао(ла):
> On Tuesday 12 June 2007 12:38, Welter Luigi Silva wrote:
> > Hi again,
> > I'm trying to have a definition with a string value, say, "foo".
> > However, when I tried the following command:
> >
> > add_definitions(-DFOO="foo")
> >
> > and
Wouldn't that set it for all the source files in the project? I just want to
override 1 file amongst many others.
Rob Mathews wrote:
Why wouldn't you simply do this:
SET(CMAKE_CXX_FLAGS_RELEASE "/MT /Ox /Ob1 /DNDEBUG" )
(or whatever your particular flags are)
?
-Original Message
Why wouldn't you simply do this:
SET(CMAKE_CXX_FLAGS_RELEASE "/MT /Ox /Ob1 /DNDEBUG" )
(or whatever your particular flags are)
?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James
Bigler
Sent: Tuesday, June 12, 2007 1:14 PM
To: cmake@cmake.org
Subj
I have a file that doesn't compile properly with certain optimization flags that
I wish to use on the rest of my system. I poked around the wiki and the help
file, but I can't find any information on how to do this.
According to the documentation SET_SOURCE_FILES_PROPERTIES COMPILE_FLAGS only
This line:
SET (CMAKE_BUILD_TYPE "Release" CACHE TYPE STRING)
should be:
SET (CMAKE_BUILD_TYPE "Release" CACHE STRING "documentation string here")
You are trying to specify "TYPE" as the type of the varibale
HTH,
David
On 6/12/07, Vitor Vasconcelos Araujo Silva <[EMAIL PROTECTED]> wrote
On Tuesday 12 June 2007 12:38, Welter Luigi Silva wrote:
> Hi again,
> I'm trying to have a definition with a string value, say, "foo".
> However, when I tried the following command:
>
> add_definitions(-DFOO="foo")
>
> and used FOO in my source file -- in a command like printf("%s\n", FOO) --
> I
Hi all,
I'm having a strange problem with my variables. In the root of my
project (that builds two libs and few executables), I have those
definitions:
SET (CMAKE_BUILD_TYPE "Release" CACHE TYPE STRING)
IF (WIN32)
# WARNING: The configuration type only works for make based generat
Use "pairs of values", where you provide a named value that CMake does not
know anything about... Then use that value to force the cache value of the
variable that CMake does know about...
As in:
PROJECT(whatever CXX)
SET(MY_CMAKE_BUILD_TYPE "Debug" CACHE STRING "User settable value always
force
> > ADD_CUSTOM_TARGET( dummy ALL DEPENDS ${src_dir}/admin/clean )
>
> I suggested dummy, but you should really use another name. Take for
> instance the name of the executable, it will add a nicer target (more
ah yes, thanks for the hint.
> representativ) in your makefile. As a
I think, I'mi
Hi again,
I'm trying to have a definition with a string value, say, "foo".
However, when I tried the following command:
add_definitions(-DFOO="foo")
and used FOO in my source file -- in a command like printf("%s\n", FOO) --
I got 'foo' without the quotes, which is not a valid string literal, as
Alan W. Irwin wrote:
You can generate a shared library with ADD_LIBRARY. See the ADD_LIBRARY
documentation at http://cmake.org/HTML/Documentation.html.
Yeah, indeed. Sorry for my stupidness.
thx,
Welter
___
CMake mailing list
CMake@cmake.org
http://ww
[EMAIL PROTECTED] wrote:
>
> Is there something that I can do to correct this? Am I doing something
> wrong? In digging around, I have not seen anything that indicates I need
> to do anything different when generating a VS .net 2003 solution from
> CMake.
>
This seems to be a bug in VS .net that
On 2007-06-12 12:37-0300 Welter Luigi Silva wrote:
Hi,
which is the command I should use (instead of add_library) to generate a
shared library using CMake?
Sorry if this is a dumb question, but I'm a newbie on this and didn't find
any documentation about that in the Cmake faq or wiki pages...
Hi,
which is the command I should use (instead of add_library) to generate a
shared library using CMake?
Sorry if this is a dumb question, but I'm a newbie on this and didn't
find any documentation about that in the Cmake faq or wiki pages...
thx,
Welter
__
On 6/12/07, Welter Luigi Silva <[EMAIL PROTECTED]> wrote:
Hi,
which is the command I should use (instead of add_library) to generate a
shared library using CMake?
Why would you use a command "instead of" ADD_LIBRARY? Have you read the docs?
Sorry if this is a dumb question, but I'm a newbie
Hi everyone,
I have been using cmake for quite a while now. I am using 2.4.6 on NetBSD.
Among other things I do a dependency build automatically, based on a well-known
directory
tree.
For example lets say you have :
CMakeLists.txt
Source1.c
depends/subprojA/
depends/subprojA/CMakeLists.txt - de
Have a look here at the _SET_FANCY macro:
http://websvn.kde.org/trunk/KDE/kdelibs/cmake/modules/FindKDE4Internal.cmake?revision=668049&view=markup
http://www.cmake.org/mailman/listinfo/cmake
Hello Alex and all,
I read it, but my case is a little bit different.
I wish to define the
On 6/12/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
2007/6/7, Jesper Eskilson <[EMAIL PROTECTED]>:
>
>
>
> 2007/6/7, Brandon Van Every < [EMAIL PROTECTED]>:
> >
> > On 6/7/07, Jesper Eskilson < [EMAIL PROTECTED]> wrote:
> > > Hi all,
> > >
> > > I would like to be able to create a static li
--- Begin Message ---
Thanks, that fixed the problem.
Regards,
Ajay
On Tuesday 12 June 2007 10:23, you wrote:
> Ajay Divekar wrote:
> > Bill,
> > Before I give out the actual command here is the CmakeList.txt file that
> > I am using to generate the makefile. This is FreeBSD 5.5
> >
> > LINK_D
2007/6/12, Alexander Neundorf <[EMAIL PROTECTED]>:
Hi Jesper,
On Thursday 07 June 2007 08:38, Jesper Eskilson wrote:
...
> I've written a simple hack in Ruby which extracts the most vital parts of a
> .vcproj file and generates a corresponding CMakeLists.txt. There are a lot
> of things it doesn
Ajay Divekar wrote:
Bill,
Before I give out the actual command here is the CmakeList.txt file that I am
using to generate the makefile. This is FreeBSD 5.5
LINK_DIRECTORIES ($ENV{PP_ROOTDIR}/lib .)
ADD_EXECUTABLE (IANd IANd.c IANServer.c IANProcess.cc )
SET_TARGET_PROPERTIES (IANd PROPERTIES L
- Original Message -
From: "John Donovan" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, June 12, 2007 1:40 PM
Subject: [CMake] Changing the include switch
An alternative is to provide the -gccincludes switch to the compiler
commandline _before_ the -I switches, but CMake puts the includes fi
Hi Jesper,
On Thursday 07 June 2007 08:38, Jesper Eskilson wrote:
...
> I've written a simple hack in Ruby which extracts the most vital parts of a
> .vcproj file and generates a corresponding CMakeLists.txt. There are a lot
> of things it doesn't handle (custom build steps, multiple configuration
2007/6/7, Jesper Eskilson <[EMAIL PROTECTED]>:
2007/6/7, Brandon Van Every <[EMAIL PROTECTED]>:
>
> On 6/7/07, Jesper Eskilson <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > I would like to be able to create a static library on Windows which
> > includes an import library to a DLL, so that use
On 6/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello,
thanks for the replies to my previous question. Here comes the next one.
I have got a couple of C and C++ sources with embedded SQL. These are
transformed into
real C and C++ sources with a preprocessor (Oracle proc). The resul
Hello,
thanks for the replies to my previous question. Here comes the next one.
I have got a couple of C and C++ sources with embedded SQL. These are
transformed into
real C and C++ sources with a preprocessor (Oracle proc). The resulting
sources should be
compiled with gcc with my ADD_DEFINI
Hi,
On Monday 11 June 2007 18:15, Trevor Kellaway wrote:
> Alex,
>
> > Please update to current cvsand use "Generic" as
> > CMAKE_SYSTEM_NAME, there is now a Generic.cmake in cmake.
>
> I still think I should use vendor ("Freescale") instead of "Generic", as
> "Generic-chc12" may not be unique, it
We're using the Metrowerks compiler, and as you can imagine it's a little
non-standard (or rather, non GCC). By default, the -I compiler switch adds a
path to the project search paths, and -I- adds them to the system paths. Can
I change the behaviour of CMake to accommodate this?
An alternative
We are using CMake 2.4.6 to manage multi platform builds: Linux and Win32
(typically VS .net 2002). Using CMake, I recently generated a VS .net 2003
solution for this code. When I try to examine the C++ properties for any
of the VS .net 2003 projects, ... well, I find that there are no C++
pro
Hello,
I have written a small example project to illustrate the problem I am
having with changing the command line options for the resource compiler.
Somehow the SET(CMAKE_COMPILE_RESOURCE "this should cause a build
error") is not behaving the way I expect it to do.
Can someone spot the error
42 matches
Mail list logo