> OK, I am pretty sure (99.9%) it is not actually using that compiler for the
> tests. The CMAKE_CXX_COMPILER value is not actually used by the visual
> studio IDE projects. However, that does seem to be some disturbing
> output I need to change the platform files so that the cl full path is
John Drescher wrote:
On Fri, Mar 20, 2009 at 5:42 PM, John Drescher wrote:
If you select "Visual Studio 8 2005" as a generator, it should not use VC6.
Please make sure you start with an empty binary directory, with no
CmakeCache.txt file.
I just created a new build tree selected vs2005 and
Another argument for a command is that the user may want...
Military time (24 hr)
UTC instead of local timezone
Months/Dates/Hours with leading 0's
By making it a command it is extensible and customizable. If it's a set of
variables you've already limited some of your options.
.. Original
> If you select "Visual Studio 8 2005" as a generator, it should not use VC6.
> Please make sure you start with an empty binary directory, with no
> CmakeCache.txt file.
>
I just created a new build tree selected vs2005 and it still used the
vc6 compiler:
Check for working C compiler: C:/Program
John Drescher wrote:
But then with this setup cmake-2.6.3 is scanning my vc6 headers and
libs to generate vc2005 projects.
This has not caused me any problems but I am unsure if checks like
partial template specification are being used or is this part of cmake
not really used if I use the .sln
Is it possible to install an executable's name while installing?
The install(TARGETS) function doesn't include a rename option.
If I use install(FILES) I have to somehow figure out which executable
I can't get the path of the executable out with VS, because I don't
know which configuration I'm us
On Fri, Mar 20, 2009 at 4:50 PM, Robert Dailey wrote:
> On Fri, Mar 20, 2009 at 9:33 AM, Marcel Loose wrote:
>>
>> Hi Robert,
>>
>> I am planning to use (but haven't implemented and tried yet):
>>
>> - add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
>> to define a custom 'check' target (
On Fri, Mar 20, 2009 at 9:33 AM, Marcel Loose wrote:
> Hi Robert,
>
> I am planning to use (but haven't implemented and tried yet):
>
> - add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
> to define a custom 'check' target (as with GNU Autotools)
>
> - add_executable( EXCLUDE_FROM_ALL ...
>>> But then with this setup cmake-2.6.3 is scanning my vc6 headers and
>>> libs to generate vc2005 projects.
>>>
>>
>> This has not caused me any problems but I am unsure if checks like
>> partial template specification are being used or is this part of cmake
>> not really used if I use the .sln a
John Drescher wrote:
On Fri, Mar 20, 2009 at 3:49 PM, John Drescher wrote:
If you use the IDE generators for CMake, you do not need to modify the
environment at all. It is only when using nmake or make, that you need an
environment that is setup to run the compiler. If you do want to use
nma
On Fri, Mar 20, 2009 at 10:30 AM, Eric Noulard wrote:
> You should file a bug report with ype "feature request":
> http://public.kitware.com/Bug/my_view_page.php
>
Feature request filed here:http://public.kitware.com/Bug/view.php?id=8774
___
Powered by
On Fri, Mar 20, 2009 at 3:49 PM, John Drescher wrote:
>> If you use the IDE generators for CMake, you do not need to modify the
>> environment at all. It is only when using nmake or make, that you need an
>> environment that is setup to run the compiler. If you do want to use
>> nmake, VS 2003
> If you use the IDE generators for CMake, you do not need to modify the
> environment at all. It is only when using nmake or make, that you need an
> environment that is setup to run the compiler. If you do want to use
> nmake, VS 2003 and above have command prompts that can be found in the
> "
John Drescher wrote:
Makes sense. So then I should be opening cmake-gui from the compiler's
command prompt instead of the shortcut on the desktop. Not a big deal
I am one to use the command prompt all the time windows or linux..
I'm not very familar with cmake-gui but I don't see another option
>> Makes sense. So then I should be opening cmake-gui from the compiler's
>> command prompt instead of the shortcut on the desktop. Not a big deal
>> I am one to use the command prompt all the time windows or linux..
>>
> I'm not very familar with cmake-gui but I don't see another option.
>
Thanks.
John Drescher schrieb:
On Fri, Mar 20, 2009 at 3:02 PM, Christian Ehrlicher
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 not seem to cause any h
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 th
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 the
checks for stl ... are
CMAKE_BUILD_TYPE is irrelevant with build systems that handle multiple
configurations (like Xcode and Visual Studio). Makefile based systems still
need CMAKE_BUILD_TYPE defined to select the type of build.
The flags you are setting need double quotes to work as you intend them,
like this:
SET(CMAK
Actually, if someone on OS X decides to generate Makefiles then
CMAKE_BUILD_TYPE can be very important.
You can simply do what you are doing and it _should_ work. The order
of operations in a CMake file, like any other language, is important.
It just depends on what is after those lines tha
How do you tell Cmake to add a compiler flag to a project's Debug target?
In a project I'm trying to fix (OpenSceneGraph) it looks like Cmake
generates an Xcode project file containing all four of the build types:
Debug, Release, ReleaseMinSize, and RelWithDebInfo. These types can be
selected from
Hi Erk,
Good suggestion!
I'll do that, once I am sure this is really the way to go working for a
moderately sized project.
Marcel.
On Fri, 2009-03-20 at 16:34 +0100, Eric Noulard wrote:
> 2009/3/20 Marcel Loose :
> > Perfect!
>
> Ok fine.
>
> >
> > I now use add_custom_target(check COMMAND ${
2009/3/20 Marcel Loose :
> Perfect!
Ok fine.
>
> I now use add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) and
> that indeed solves the parallel build issue.
> And yes, I have MAKEFLAGS set to "-j4".
Now that you make check is working, may be it's time to describe
the way to go on a wik
2009/3/20 Robert Dailey :
> On Fri, Mar 20, 2009 at 7:02 AM, Philip Lowman wrote:
>>
>> On Thu, Mar 19, 2009 at 12:35 AM, Robert Dailey
>> wrote:
>>
>> This would be a nice thing to have. I had someone complain at work the
>> other day that they had to run "make" before "make test" as well. Se
Michael Jackson wrote:
I don't think you could do this as a set of variables. It would be
better as some sort of command. file(GETDATE result) or something.
-Bill
Well, I could but I am really interested in _why_ I would _not_ want to?
Besides the obvious that the variables would basicall
Hi Robert,
I am planning to use (but haven't implemented and tried yet):
- add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND})
to define a custom 'check' target (as with GNU Autotools)
- add_executable( EXCLUDE_FROM_ALL ...)
for each test program
- add_dependencies(check )
for each y
On Mar 20, 2009, at 10:12 AM, Bill Hoffman wrote:
Michael Jackson wrote:
On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote:
2009/3/20 Philip Lowman :
On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson
wrote:
I am trying to find a nice portable solution for generating
version
strings based
Michael Jackson wrote:
On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote:
2009/3/20 Philip Lowman :
On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson
wrote:
I am trying to find a nice portable solution for generating version
strings based on the date (seems reasonable). I even have my own c+
On Friday 20 March 2009 13:26:36 Michael Jackson wrote:
> After all of this I'll probably put in a feature request for this
> functionality to be a part of CMake. Actually, if we could just get
> the following variables set by CMake it would be great:
>
> CMAKE_CURRENT_YEAR
> CMAKE_CURRENT_MONTH
>
On Fri, Mar 20, 2009 at 7:02 AM, Philip Lowman wrote:
> On Thu, Mar 19, 2009 at 12:35 AM, Robert Dailey wrote:
>
>> Hi,
>>
>> I'm currently using Visual Studio 2008 and CMake v2.6.3. I noticed that
>> when I create unit tests, they are not added as dependencies in the solution
>> containing all o
Perfect!
I now use add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) and
that indeed solves the parallel build issue.
And yes, I have MAKEFLAGS set to "-j4".
Thanks,
Marcel
On Fri, 2009-03-20 at 13:44 +0100, Eric Noulard wrote:
> 2009/3/20 Marcel Loose :
> > Hi Erk,
> >
> > On Fri, 2009-0
On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote:
2009/3/20 Philip Lowman :
On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson
wrote:
I am trying to find a nice portable solution for generating version
strings based on the date (seems reasonable). I even have my own c+
+ code
that can genera
2009/3/20 Philip Lowman :
> On Thu, Mar 19, 2009 at 12:35 AM, Robert Dailey wrote:
>>
>> Hi,
>>
>> I'm currently using Visual Studio 2008 and CMake v2.6.3. I noticed that
>> when I create unit tests, they are not added as dependencies in the solution
>> containing all of the unit test projects + t
2009/3/20 Marcel Loose :
> Hi Erk,
>
> On Fri, 2009-03-20 at 10:06 +0100, Eric Noulard wrote:
>> add_executable(t_hello t_ EXCLUDE_FROM_ALL hello.cpp)
>>
>> add_test(t_hello t_hello)
>>
>> add_custom_target(check
>> COMMAND ${CMAKE_BUILD_TOOL} test
>>
2009/3/20 Andreas Pokorny
> Hello,
>
> 2009/3/20 ankit jain :
> > Hi all,
> >
> > I am creating a library through add_library command of java files.
> > Now i want to link it with some jar files which contain some classes
> which
> > is needed to build that library.
> >
> > target_link_libraries
Hello,
2009/3/20 ankit jain :
> Hi all,
>
> I am creating a library through add_library command of java files.
> Now i want to link it with some jar files which contain some classes which
> is needed to build that library.
>
> target_link_libraries is not working in this case.
What do you mean by
Hi all,
I am creating a library through add_library command of java files.
Now i want to link it with some jar files which contain some classes which
is needed to build that library.
target_link_libraries is not working in this case.
How to do it?..
Ankit
__
On Fri, Mar 20, 2009 at 10:52 PM, Philip Lowman wrote:
> On Fri, Mar 20, 2009 at 2:38 AM, Dancefire wrote:
>
>> Hi, Philip,
>>
>> I tested your script FindGTK2.cmake on my computer, I got some problems,
>> but I fixed them. The problem is that I install gtkmm only for current user,
>> so the pat
On Thu, Mar 19, 2009 at 12:35 AM, Robert Dailey wrote:
> Hi,
>
> I'm currently using Visual Studio 2008 and CMake v2.6.3. I noticed that
> when I create unit tests, they are not added as dependencies in the solution
> containing all of the unit test projects + the RUN_TESTS project. For
> example
On Fri, Mar 20, 2009 at 2:38 AM, Dancefire wrote:
> Hi, Philip,
>
> I tested your script FindGTK2.cmake on my computer, I got some problems,
> but I fixed them. The problem is that I install gtkmm only for current user,
> so the path can not be found at
> [HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4
Hi Erk,
On Fri, 2009-03-20 at 10:06 +0100, Eric Noulard wrote:
> add_executable(t_hello t_ EXCLUDE_FROM_ALL hello.cpp)
>
> add_test(t_hello t_hello)
>
> add_custom_target(check
> COMMAND ${CMAKE_BUILD_TOOL} test
> DEPENDS t_hello)
I stum
Thanks for the idea, I'll have a look on what they did.
In the meantime, if some of you have an idea...
I must admit I would have preferred a simple/clever solution than
reimplementing myself the cmake dependency management :-(
Alexandre
-Original Message-
From: cmake-boun...@cmake.or
Hi Erk,
And now, of course, there's the catch. Things work great for my toy
project with only one test program. But my real project has more than
one test program. How should I now create the custom target 'check'? Do
I need to keep a list of all test programs? That would be quite
cumbersome, beca
2009/3/20 Mattias Helsing
> Hi Ankit,
>
> I have no xp with cmake for java. I was just pointing out my first
> immediate reaction to your script code.
>
> Perhaps you should try things in smaller scale, e.g. try to create a
> custom_command that compiles one java file. Also - during development
>
2009/3/20 Marcel Loose :
>>
>> Because you ask for it :-)
>> when calling ctest in add_test.
>
> Ok, I see.
> But how then, should I read the example from section 10.5 from the
> "Mastering CMake" book? Here's a quote from page 167.
>
>
> For example, consider the following ADD_TEST command taken
Hi Erk,
Thanks for your prompt reply. Your example works great.
In the mean time, I found another way to solve my problem:
add_custom_target(check DEPENDS t_hello)
add_custom_command(TARGET t_hello POST_BUILD
COMMAND ${CMAKE_CTEST_COMMAND} t_hello)
But I think I prefer your solution; it saves
2009/3/20 Philip Lowman :
> On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson
> wrote:
>>
>> I am trying to find a nice portable solution for generating version
>> strings based on the date (seems reasonable). I even have my own c++ code
>> that can generate the proper string for me. The problem t
Hi all,
Can anybody tellme where i can find cmake docs that describe about various
command and other things for building the java files. it seems that for java
compiler flags and other command are diff. as we have for c and cpp files. i
wan tcomplete inf. related to it.
Ankit
___
2009/3/20 Marcel Loose :
> Hi Erk,
>
> On Thu, 2009-03-19 at 15:37 +0100, Eric Noulard wrote:
>> 2009/3/19 Marcel Loose :
>> > Hi Eric,
>> >
>> > I used "make test" first, but that failed the same way ctest fails.
>> > However, ctest -V at least gave me some more (useful) output.
>>
>> You are righ
2009/3/20 Mattias Helsing
> Hi Ankit,
>
> The set command doesn't work like you think.
> set(X a b c) creates a list called X with contents a;b;c. So you have the
> list
> JAVADIST with contents
> (/myjava/jdk/1.4.2/Linux/;XERCESDIR;/myjava/XML4J/4.3.4)
>
> try
> set(JAVADIST /myjava/jdk/1.4.2/Li
It looks like the projects flags.make is updated every time any compile flag or
definition changes, and every object file in the project depends on flags.make.
In the case of properties set using set_property() the only part of the
flags.make that changes is the comment, so maybe it would be b
51 matches
Mail list logo