In cmake I have:
if (${CMAKE_BUILD_TYPE} STREQUAL Release)
message(WARNING "Release")
endif()
if (${CMAKE_BUILD_TYPE} STREQUAL Debug)
message(WARNING "Debug")
endif()
(how write something like elseif?)
If I call "cmake ." it write: "Warning:Debug"
Debug is default and I must call "cmake .
(previously I send this mail not to mail list, but user)
Maybe my cmake files are bad?
I have created test project
https://gitlab.com/andrzejbor/test_rebuild_all
after commit is rebuild whole project
what I might change?
I don't want moving all but .git to one directory src/
--
Powered by
I have cmake project, I usuall call "cmake ." followed by make.
Now I have installed cmake 3.12.3 (was impossible install by apt-get)
I have following problem:
If I change one *.cpp file, in most cases make rebuilds all *.cpp files,
not related to this file. Sometimes is ok.
--
Powered by
PNaCl + MSDev may be rare, I feel that
cross-compiling for other unix systems with -l and -L library and path
command-lines ought to have been done before with Visual Studio generators.
Thanks in advance
Andy
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake
Hi,
Attached is a patch for a documentation correction for setting test
properties. Can someone check on this and merge it into CMake if it's
acceptable?
Thanks,
Andy
From bc634e15ffddcee9df4a948fcde8c96cd3500a39 Mon Sep 17 00:00:00 2001
From: Andrew Bauer andy.ba...@kitware.com
Date: Fri, 12
Hi,
For superbuilds, is there a way to add tests that are in external projects
to the set of tests that the superbuild runs? My thought was to use a CMake
script to run ctest in the external project's build directory but I'm
hoping there's something a bit easier.
Thanks,
Andy
--
Powered
The documentation is not current. Mingw can now link directly to a
.dll. See the direct linking to a dll section here ...
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/win32.html
On Sun, Jul 25, 2010 at 4:35 AM, Andreas Pakulat ap...@gmx.de wrote:
On 25.07.10
mingw can link using a .dll
On Sat, Jul 24, 2010 at 11:00 PM, John Drescher dresche...@gmail.com wrote:
I know that target_link_libraries can be used to link a .lib ,
but how to link a .dll into the project?
You do not link against a .dll in windows ever.
When you create a .dll there is
Hi,
set(global_name value CACHE INTERNAL FORCE)
Andy
On Mon, Jun 22, 2009 at 6:35 PM, Xiangyun Kong xyk...@yahoo.com wrote:
How could I define a global scoped variable in CMAKE, so that I could use
something like,
set (global_name ${global_name} {files})
to collect all files in each
.
So, as I said, we cannot just take the whole file, since the file will
contain comments, empty lines, etc. I guess we could write a simple C++
parser (no such thing) that would parse files and remove comments and other
useless things, but that would be way too complicated.
Hope that helps.
Andy
Hi Eric,
The FILE(INSTALL command is an internal command used for install process. If
there is a DESTDIR problem, then it is in the original CMake files that
generate that file.
Andy
On Tue, Oct 14, 2008 at 2:18 PM, Eric Noulard [EMAIL PROTECTED]wrote:
Hi All,
I am using
CONFIGURE_FILE
Hi,
Look at FILE and STRING commands.
Andy
On Tue, Oct 14, 2008 at 7:29 AM, Nicolas Desprès
[EMAIL PROTECTED]wrote:
Hi everyone,
I'm using cmake 2.6.2 for win32 and I'm trying to configure a .bat
file. I use a couple of cmake variable in my .bat.in template
Hello,
The problem is that you are not exporting any symbols in your library.
On Windows even with shared libraries you have a .lib file that describes
all the exported symbols.
Andy
On Tue, Oct 7, 2008 at 9:05 AM, Andrea Borsic
[EMAIL PROTECTED]wrote:
Dear All,
I am a recent user of CMake
someClass {
...
};
and
MYLIB_EXPORT void someFunc();
and so on.
Hope this helps.
Andy
On Tue, Oct 7, 2008 at 11:25 AM, Andrea Borsic
[EMAIL PROTECTED]wrote:
Hi All,
Yes it is the .def file that defines the import/exports, but the linking
stage fails before taking care of these aspects
will contain the toplevel dir.
Andy
On Fri, Oct 3, 2008 at 11:03 AM, Leila Baghdadi
[EMAIL PROTECTED]wrote:
Hi guys,
I am wondering if someone can give me a quick hint here.
I am trying to link an external library (openmesh.org) to itk so I can
use their mesh subdivision algorithm on my
Hi,
Sounds like a nice rainy Sunday project. Unfortunately it does not rain in
California that much, so it is going to take a while before I have a chance
to look at it.
Andy
On Tue, Sep 2, 2008 at 11:07 AM, Sean McBride [EMAIL PROTECTED]wrote:
On 8/26/08 4:41 PM, Andy Lego said
Hi Darren,
This is a command used for memory checking, such as valgrind or purify. You
do not need to set it to anything, unless you are doing memory checking
during testing.
I am not sure if there is any memory checker on mac at this point. Haven't
looked into that for a while.
Andy
On Tue
Hello,
Actually, use CMAKE_CUSTOM_COMMAND instead. This way you will have full
dependency checking.
Andy
On Tue, Aug 12, 2008 at 10:41 AM, David Cole [EMAIL PROTECTED] wrote:
EXECUTE_PROCESS with cmake -E copy
(or copy_directory)
On Tue, Aug 12, 2008 at 1:39 PM, [EMAIL PROTECTED] wrote
PROJECT(foo NONE)
Andy
On Tue, Aug 12, 2008 at 10:41 AM, [EMAIL PROTECTED] wrote:
Hi,
One of our (sub)project only uses custom commands: neither C nor C++
compilation.
How can I tell CMake not to look for a C/C++ compiler, but only executes
the defined custom commands?
Thanks,
Manu
Hello
I'm working on a c++ / JNI application which needs to run on Mac/Linux/
Windows.
It builds fine on Mac and Windows, however on Linux (Ubuntu 8.04,
cmake version 2.4 patch 7) I get the following error:
CMake Error: JAVA_DIR is not set. It must be set to the directory
containing
Try this after file command:
string(REPLACE ; plugin_STR ${plugin_STR})
That said, depending on what you need to do, this may be the wrong type of list.
Andy
On Thu, Mar 27, 2008 at 5:08 PM, Leopold Palomo Avellaneda
[EMAIL PROTECTED] wrote:
Hi,
using this line:
file(GLOB plugin_STR
Hello Dario,
Make sure you see the .h files for ncurses.
Andy
On Mon, Mar 24, 2008 at 1:04 PM, Bill Hoffman [EMAIL PROTECTED] wrote:
Dario Figueira wrote:
:s, where are they? so i can install ccmake
i'm usingKubunto, and i dowloaded the 2.4.7 version and make installed it.
Any
Hi Martin,
Happy I could help.
Just make sure to rerun CMake when you add new input files.
Andy
On Wed, Mar 19, 2008 at 12:10 PM, Martin Fischer [EMAIL PROTECTED] wrote:
Andy,
thanks for the tutorial. It does exactly what I need. I copied and
modified the relevant pieces and it worked
Hi,
CMake is tested both with gcc and Sun's compiler. Both in 32 and 64 bit mode.
Andy
On Tue, Mar 18, 2008 at 3:32 AM, Tavitayya Varanasi
[EMAIL PROTECTED] wrote:
Actually, We are planing to make cmake as a package available with open
solaris.
Matthew Woehlke wrote:
Tavitayya
Hi Martin,
When you add things to the custom target they will be executed in one
step. What you want are custom commands. Look at the manual for
add_custom_command.
Andy
On Sun, Mar 16, 2008 at 8:31 AM, Martin Fischer [EMAIL PROTECTED] wrote:
On 11.03.2008 21:24 Andy Lego wrote:
Hi Andy
Hello Michael,
You can also try co cleanup the API so you don't need the circular
dependency. This way you can still keep the library separate, but at
the same time reduce problems in the future.
Andy
On Thu, Mar 13, 2008 at 9:18 AM, Michael Wild [EMAIL PROTECTED] wrote:
On 13Mar, 2008
(
docs
COMMAND ${CMAKE_COMMAND} -S ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
DEPENDS ${PROJECT_SOURCE_DIR}/Doxyfile
)
Or something like that.
Andy
On Wed, Mar 12, 2008 at 1:23 PM, Kaleb Pederson
[EMAIL PROTECTED] wrote:
If I have a custom target, how can I attach a set of cmake
Hello Martin,
You cannot nest commands and constructs. Move the FOREACH before the
custom target and set a variable in it. Then use the result in the
custom target.
Andy
On Tue, Mar 11, 2008 at 12:44 PM, Martin Fischer [EMAIL PROTECTED] wrote:
Hi,
for a project I'm working on I need to do
I think having the last 2 versions is a good idea...
that way if the latest and greatest gets a bad bug in it, there is a
way to back down to the previous version
Miguel A. Figueroa-Villanueva [EMAIL PROTECTED] 4/08/2007 2:19
a.m.
On 8/3/07, Eric Noulard wrote:
2007/8/3, Bill Hoffman :
So,
about the java crowd. This
is all about C/C++ :)
Cheers,
Ding.
Brandon Van Every [EMAIL PROTECTED] 31/07/2007 2:22:56 a.m.
On 7/30/07, Andy Dingfelder [EMAIL PROTECTED] wrote:
Personally, my motivation is that I want to use Eclipse on Linux to
develop both java and c++ apps, and want them
What's a non-trivial Java app that's using a CMake build? Dart2
server perhaps?
I don't know any java apps that are built using cmake if thats what you
mean.
Building java apps it typically done using Maven or Ant, and I see no
need to re-invent the wheel and use cmake to do that.
All cmake
I personally think that the Eclipse CDT might be a good option to
explore instead of focusing on other smaller, less used IDEs.
The Eclipse userbase is huge and the CDT portion is growing with leaps
and bounds, especially in the embedded and cross platform areas.
It seems to me that the
Brandon Van Every [EMAIL PROTECTED] 30/07/2007 3:29:07 p.m.
On 7/29/07, Andy Dingfelder [EMAIL PROTECTED] wrote:
I personally think that the Eclipse CDT might be a good option to
explore instead of focusing on other smaller, less used IDEs.
Well, yeah, like, duh.
Thoughts from any other Eclipse
rather not reinvent the wheel.
Thoughts?
David Cole [EMAIL PROTECTED] 25/07/2007 10:46:36 p.m.
From the CMake CVS repository. CVS HEAD has the cross-compiling
functionality in it right now...
HTH,
David
On 7/24/07, Andy Dingfelder [EMAIL PROTECTED] wrote:
The example on http://www.cmake.org
The example on http://www.cmake.org/Wiki/CMake_Cross_Compiling says that
this is supported by CMake starting with version 2.6.0 (not yet released
as of July 2007).
Where can one download v2.6 to try this ?
WARNING:
I'm wondering if someone could help me with a simple change to the
helloworld example
I have gotten the helloworld to work with either windows output or
linux output, by changing the base CMakeLists.txt file but am struggling
on how to build both
the current example is set up as follows:
PROTECTED] 24/07/2007 3:05:05 p.m.
Andy, sorry for the problems that you had trying to follow my
instructions. Let me address some of your troubles.
1] The CMake Editor plugin is just that.. A plugin for Eclipse that
will do syntax coloring and some code completion for CMake commands
in CMake files
add
-DCMAKE_MODULES_PATH=path/to/NSIS.template.in file.
This brings us to:
A#2:
You can always run command line cpack:
cpack -G Generator --config CPackSource.cmake
where Generator is NSIS, ZIP, TGZ,
Andy
[EMAIL PROTECTED] wrote:
Hi,
I have some question about how CPack works
://www.paraview.org/cgi-bin/viewcvs.cgi/GUI/Client/pvTestDriver.h?root=ParaViewview=markup
http://www.paraview.org/cgi-bin/viewcvs.cgi/GUI/Client/pvTestDriverConfig.h.in?root=ParaViewview=markup
Andy
Eric Noulard wrote:
Hi All,
I would like to use CTest for running some elementary
client/server type
Hello,
Would you mind running cpack with --debug and --V option and send me the
output?
Thank you.
Andy
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
Hi,
When I use CPack on Windows with WinZip installed,
I get this error:
CPack Error: Cannot find a suitable
and suggestions. Are you interested in
contributing an article to the newsletter? In future issues, we'd like
to include case studies written by developers who utilize Kitware's Open
Source technology. Please contact Lisa Avila at [EMAIL PROTECTED]
with your ideas.
--
Andy Cedilnik
Kitware Inc
Hi Peter,
I am working on this, but I would still ask you to put a bug in a CMake
bug tracker, just to have a record:
http://www.cmake.org/Bug
Andy
Peter Carr wrote:
Hi,
I'm running into problems using the MACOSX_BUNDLE parameter with
ADD_EXECUTABLE. For some reason, I'm getting
Hi Alan,
I will add more in the future:
http://www.cmake.org/Wiki/CMake_Packaging_With_CPack
Andy
Alan W. Irwin wrote:
Mr.Prise wrote:
Hello,
Im new to CMake. I used autools before.
Does CMake have similar function to make an archive from the source
like autotools has with make dist
Hi Andi,
I thought the cmake-indent.vim is only read if it is a CMake file. Can
you propose a fix? Patch would be nice.
Thank you.
Andy
Andreas Beckermann wrote:
Hi
there is a line in cmake-indent.vim that makes my vim very uncomfortable to
use:
setlocal indentexpr=CMakeGetIndent
Hello,
Actually, there is a vsnprintf/snprintf implementation in
CMake/Utilities/cmtar/compat/snprintf.c.
Andy
Brad King wrote:
[EMAIL PROTECTED] wrote:
It appears that Digital Unix's libc doesn't have snprintf/vsnprintf,
which are used in quite a few places - mostly in source
Hi Eric,
Try running ctest with --debug and -VV flags.
Andy
Eric BOIX wrote:
Dear ctest (and cmake) users,
I have set up a ctest script in the way illustrated by the CTest Scripting
section of cmake's wiki i.e.
http://www.cmake.org/Wiki/CMake_Scripting_Of_CTest
(in order
Hi Eric,
Also, your CTEST_ENVIRONMENT should be set to:
SET(CTEST_ENVIROMENT
CVS_RSH=$ENV{HOME}/cvs_rsh_trick)
The export is a SH thing and is not needed (should not be there).
Andy
Eric BOIX wrote:
Dear ctest (and cmake) users,
I have set up a ctest script in the way
Hi Steve,
I am happy you find CPack so useful. Hopefully you will use for your
applications too.
Andy
Steve Johns wrote:
This is a story post, and a thank-you post.
I recently built the CVS version of CMake for the first time, and then
went
on to package it into a personal binary
Hi Ian,
Check ADD_CUSTOM_COMMAND. There are bunch of examples all over the place.
You can also do:
cmake --help-command ADD_CUSTOM_COMMAND
Andy
Ian Gotenks wrote:
Hi,
I am trying to learn CMake to use it in my project
but (as anyone might expect) I have some problems
Hi Ian,
Check ADD_CUSTOM_COMMAND. There are bunch of examples all over the place.
You can also do:
cmake --help-command ADD_CUSTOM_COMMAND
Andy
Ian Gotenks wrote:
Hi,
I am trying to learn CMake to use it in my project
but (as anyone might expect) I have some problems
Hello,
Would you mind sending the script.cmake file?
Andy
Hirohito Okuda wrote:
Hi,
I am trying to use ctest as a Dart2 client,starting with a very simple
settings. I wrote a CMake script script.cmake following a guidance on
the Cmake WIKI pages, and made it run. But I got following
if the list does not exists as long as the
index is 0
* LIST(REMOVE is gone
* LIST(REMOVE_AT is now the one that removes index
* LIST(REMOVE_ITEM removes specified items and also removes specified
item multiple times
More list commands will be added in 2.6.
--
Andy Cedilnik
Kitware Inc
report.
Do not hardcode it to your script.
FILE(GLOB INSTALLED_LIBNAME [EMAIL PROTECTED]
@/[EMAIL PROTECTED]@*)
MESSAGE(INSTALLED_LIBNAME [EMAIL PROTECTED]
@/[EMAIL PROTECTED]@*)
and so on.
CPack will set CMAKE_INSTALL_PREFIX to the right thing.
--
Andy Cedilnik
Kitware Inc
Hi Clint,
CPack runs the cmake_install.cmake script, so if there are any
post-install scripts there, they should get executed. What do your
post-install scripts looks like?
Andy
Clinton Stimpson wrote:
So it seems that CPack doesn't run the post install scripts?
Is it supposed
files
CPack: Compress package
CPack: Finalize package
CPack: Package /disk/home/andy/vtk/CMake-bin/cmake-2.5.0-Linux.tar.bz2
generated.
[EMAIL PROTECTED] $ ls -l cmake-2.5.0-Linux.tar.bz2
-rw-r--r-- 1 andy andy 3299394 May 5 09:55 cmake-2.5.0-Linux.tar.bz2
[EMAIL PROTECTED] $ file cmake-2.5.0
Hi Craig,
cpack -G TBZ2 --config CPackSource.cmake
Why is cpack running uic/moc? It should not.
Andy
Craig Bradney wrote:
HI Andy,
My CMake is current CVS.
I was running make package_source
When I run cpack like you are, how do I specify I only want a source package
not a built
Give me a second...
Andy
William A. Hoffman wrote:
At 07:44 PM 5/3/2006, Craig Bradney wrote:
Bill? Any ideas on adding bzip2 support?
The Scribus bz2 is 2mb smaller (~10 vs ~12mb) so its a good % of the total.
CPack is really in beta. bz2 support should not be that hard
Hi,
Instead of looking through the source code, you can also just type:
cpack --help
Andy
Filipe Sousa wrote:
On Thursday 04 May 2006 00:18, Craig Bradney wrote:
For a more comple example have a look at CMakeLists.txt of cmake:
http://public.kitware.com/cgi-bin/viewcvs.cgi
Hi Clint,
This feature is on my list, but it will probably take some time to
develop it. So, the answer is: currently not.
Andy
Clinton Stimpson wrote:
Does CTest support running multiple tests concurrently?
So that one could run tests in a fraction of the time on an smp or
dual
Hi Mike,
You can add a custom command that will invoke outside Make and build ACE.
Andy
Michael Reed wrote:
I'm trying to use a library/middleware called ACE, and it has it's
own, complex Makefiles. Normally, these are just included in a
standard Makefile like so:
include
Hi Xavier,
Also, what version of CMake?
Andy
Xavier Delannoy wrote:
On Tue, 25 Apr 2006 07:28:22 -0400
Andy Cedilnik [EMAIL PROTECTED] wrote:
Hi Xavier,
For some reason all paths in DartTestfile.txt are windows style. What do
your ADD_TEST commands look like?
here is my
Hi Subir,
The efence is really a linking flag, so do:
export LDFLAGS=-lfence
Andy
Subir Singh Lamba wrote:
Hi,
I want to use the following command while using cmake
gcc -g -o hello hello.c -lefence
How should I insert the flags so that -lefence is at the end
I have tried
export
Hi Alex,
IF(NOT CMAKE_NOT_FIRST_RUN)
# Do something
ENDIF(NOT CMAKE_NOT_FIRST_RUN)
SET(CMAKE_NOT_FIRST_RUN 1 CACHE INTERNAL )
Andy
Alexander Neundorf wrote:
Hi,
I can remember there was already this question, but I can't find it in
the archive.
Is there a way to detect the first
Andy
Filipe Sousa wrote:
E.g. creating a second man page cmakemodules or something like this,
listed in the see also section.
OTOH this would make searching the man page less effective, since two man
pages would have to be searched.
Also the --help-html could be improved to show
Hi Vingesh,
You will need the build directory to put the log/xml files in.
Andy
Vignesh M.P.N. wrote:
Hi Andy:
Thanks for your reply.
You mean to say I need to include NightlyStartTime or all other keys that
I've commented.
I just tried running
ctest -D ExperimentalStart -D
/configure
# MakeCommand: /usr/bin/make -i
# CVSCommand: /usr/bin/cvs
# CoverageCommand: /usr/bin/gcov
TimeOut: 1500
And I tried running CTest using ctest -D Experimental
It says Problem initializing the dashboard
You need NightlyStartTime and so on even if you do not use them.
Andy
be improved
Look at it and give me suggestions.
--
Andy Cedilnik
Kitware Inc.
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Hi Bignesh,
Look at the page:
http://www.cmake.org/Wiki/CMake_Generating_Testing_Files
Andy
Vignesh M.P.N. wrote:
Hi all
I am a CMake newbie and new to build process too. So I felt the
documentation insufficient.
I am basically trying to use CTest as a client to Dart without using
Hi Vingesh,
Sorry about misspelled name. I updated the Wiki page to include more
details. Please let me know if you require more information.
Thank you.
Andy
Andy Cedilnik wrote:
Hi Bignesh,
Look at the page:
http://www.cmake.org/Wiki/CMake_Generating_Testing_Files
Andy
Vignesh
Hi Andy,
Expanding @FOO@ withing CMake list files was not intended feature and
was removed in CMake 2.2. The @FOO@ is still used for configured files.
In CMake list files you should really use ${FOO}.
Andy
[EMAIL PROTECTED] wrote:
FOREACH (MY_VAR FOO)
SET(FOO_DBL_EXP BAR
Hi Filipe,
I have not tested it on Visual Studio 8 and I know that there are some
STL issues. I'll look into that.
Andy
Filipe Sousa wrote:
Filipe Sousa wrote:
Filipe Sousa wrote:
Oops!
I just forgot to set CPACK_ vars in CMakeLists.txt. Now is working :)
Works on Linux
Hi James,
Looks like it is there since 2.2.1.
http://www.cmake.org/cgi-bin/viewcvs.cgi/Source/cmGetDirectoryPropertyCommand.cxx?rev=1.4.2.1root=CMakeview=markup
Andy
James Bigler wrote:
John Biddiscombe wrote
Hi Fred,
This was fixed in CMake 2.2. CTest in CMake 2.2 supports Gcov up to the
version 4.*.
Andy
Wheeler, Frederick W (GE, Research) wrote:
As of version 3.4, gcc has changed the format of the coverage files you get with options
-fprofile-arcs -ftest-coverage. Also, the coverage
Hi Fred,
You may also want to switch DROP_METHOD to HTTP. This way you do not
need FTP proxy.
Andy
Wheeler, Frederick W (GE, Research) wrote:
I've solved a minor problem for myself. I want to report it here in case it
will help anyone else in the future.
I could not get ctest
Hi Xavier,
Put a bug report please.
Andy
xavier delannoy wrote:
2006/1/24, Andy Cedilnik [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]:
Hi Xavier,
This sounds like a great idea. I would extend it though:
SET_TEST_PROPERTIES(test1 PROPERTIES MEASUREMENT Key=Value
} )
GET_FILENAME_COMPONENT(name ${file} NAME)
CONFIGURE_FILE( ${file} ${EXECUTABLE_OUTPUT_PATH}/resources COPYONLY)
ENDFOREACH(file)
Andy
Filipe Sousa wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
John Biddiscombe wrote:
Hello all,
I have a directory with some text files in that I need to copy
76 matches
Mail list logo