Hi all,
we used CMake 2.8 so far and had used the environment variable
CMAKE_ROOT to tell the cmake binary, where to find its Modules etc.
directories.
We used this in a multiplatform context to store the
architecture-independent files of CMake only once.
It seems, that CMake 3.0 does not hono
Hi Eike,
thanks for the pointer. I verified, that it works with the current git
version of cmake.
So the problem will be fixed with the next CMake release.
Martin
On 08/01/14 10:00, Rolf Eike Beer wrote:
Am 08.01.2014 09:42, schrieb Martin Apel:
Hi all,
I hope this question hasn't
Hi all,
I hope this question hasn't been asked before, I haven't found anything
useful in the archive.
Assume I have the following small CMakeLists.txt file:
CMAKE_MINIMUM_REQUIRED (VERSION 2.8)
PROJECT(testCMakeDeps)
ADD_LIBRARY(foo SHARED foo.cpp)
ADD_LIBRARY(bar SHARED bar.cpp)
ADD_EXECU
I am trying to use the LLVM dragonegg plugin for GCC in a project, which
is built using CMake. However I have a hard time figuring out how to
tell CMake, what it should do. Dragonegg is a plugin, which makes GCC
use part of the LLVM infrastructure to optimize the compiled code. In my
case,
I am try
On 29/03/11 19:56, David Cole wrote:
> Now that we have released CMake 2.8.4, *now* would be a great time to
> prioritize bug fixes for the next release of CMake.
http://public.kitware.com/Bug/view.php?id=11942
This currently keeps us from upgrading to 2.8.3 or 2.8.4.
Thanks,
Martin
__
tests and submit the results to CDash.
The only requirement for the test machines
is to have standard software installed, we need perl and python for our
tests.
Hope this helps,
Martin
On 05/30/10 14:17, Alexander Neundorf wrote:
> On Friday 28 May 2010, Martin Apel wrote:
>
>>
.
Regards,
Martin
On 05/28/10 09:05, Karthik Krishnan wrote:
> On Fri, May 28, 2010 at 12:04 PM, Martin Apel <mailto:martin.a...@simpack.de>> wrote:
>
> Hi Alok,
>
> the problem is not to start the testing process remotely. In my
> case it's no probl
AQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
>
> ----
> The New Busy is not the too busy
Hi all,
we have currently set up a nightly build process, which builds and tests
our software via CMake / CTest and submits results to CDash.
However I would like run some tests on multiple machines with different
OS versions (Windows XP, Vista, Windows 7) for a build, which has been
created under
David Cole wrote:
> On Fri, Dec 11, 2009 at 3:58 AM, Martin Apel <mailto:martin.a...@simpack.de>> wrote:
>
> Hi all,
>
> I tried to set some CTest custom variables such as
> CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE in the CTestCustom.cmake
>
Hi all,
I tried to set some CTest custom variables such as
CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE in the CTestCustom.cmake
file in the binary directory.
This works as long as I run ctest interactively, e.g. "ctest -D
Experimental". In this case, the test output is not cut off. If I do the
sa
Dixon, Shane wrote:
> I'm running Cmake 2.8.0-rc3. Running "cmake --system-information" doesn't
> dump anything, but tries to build in the current directory. This seems like
> a bug. If anyone else can confirm this, I'll open a bug report for it.
>
> --
> Shane Dixon
> Linux Engineer
> Atmel C
Philip Lowman wrote:
> On Wed, Sep 30, 2009 at 5:24 AM, Martin Apel <mailto:martin.a...@simpack.de>> wrote:
>
> I had a similar issue with CMAKE_SYSTEM_NAME. I have put platform
> specific default settings into files called "Linux.cmake" and
> "
I had a similar issue with CMAKE_SYSTEM_NAME. I have put platform
specific default settings into files called "Linux.cmake" and
"Windows.cmake",
where the file is included as
INCLUDE (${CMAKE_SYSTEM_NAME}.cmake)
However it's not possible to initialize some variables, because this
include stateme
Hi Brad,
Brad King wrote:
> Hi Martin,
>
> Thanks for trying the release candidate. It is helpful to get feedback
> early in the release process.
>
> Martin Apel wrote:
>
>> However I found a few quirks in the first rc:
>> 1. I have quite a lot of Fortran fil
Hi all,
thanks for your efforts to improve CMake. Especially the support to run
tests in parallel is really great!
However I found a few quirks in the first rc:
1. I have quite a lot of Fortran files in one of our projects. We use
the Intel Fortran 11 compiler to compile these.
When gathering
Hi all,
I am experiencing a very strange problem with a build run via a ctest
script on Windows. The script looks as follows:
SET (CTEST_SOURCE_DIRECTORY "C:/s_9XXX_build-windows-32/develop")
SET (CTEST_PROJECT_NAME "Spck NA")
SITE_NAME(CTEST_SITE)
SET(CTEST_BUILD_NAME win32-plain-Experimental)
S
Hi,
I think you should be able to do something like the following:
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS}) # For CXX
probably as well
ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" )
ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" )
ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}" )
set(CMAKE_C_FLAG
j s wrote:
> I don't think so, but this article claims that by specifying multiple
> c++ files at the same time, the Visual C++ compiler will parallelize them:
>
> http://stackoverflow.com/questions/601970/how-do-i-utilise-all-the-cores-for-nmake
>
>
> Regards,
As nmake cannot perform parallel bui
ghtly" builds), and then simply
> assign those build names from those sites to the "Weekly" group.
>
> Let me know if you need more info : it should be really
> straightforward if you are the CDash project administrator.
>
>
> HTH,
> David
>
>
> On F
t; >
> >
> > Virus checked by G DATA AntiVirus
> > Version: AVA 19.6409 from 10.07.2009
> >
> >
> > ___
> > Cdash mailing list
> > cd...@public.kitware.com
> > http://public.kitware.com/cgi
Hi there,
I am currently running nightly builds and accompanying tests using CMake
and CDash. However, our software is rather computationally expensive, so
we'd like to perform more extensive tests every weekend, because one
night is too short for these. I only found documentation on setting up
ni
Hi John,
the same problem has bitten me as well, now in a case, where I cannot
simply uninstall one of both compiler versions.
I analyzed the situation a bit, and I am not sure, if either CMake or
Visual Studio is the culprit here.
During try_compile for checking the Fortran compiler, CMake genera
ay be
> lower
> if you wish to support older CMake versions for this project. For more
> information run "cmake --help-policy CMP".
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> -- Configuring incomplete, errors occurred!
&
distribution.
Best Regards,
Martin
James Bigler wrote:
> On Tue, Apr 28, 2009 at 8:21 AM, Martin Apel <mailto:martin.a...@simpack.de>> wrote:
> > Bill Hoffman wrote:
> >> Martin Apel wrote:
> >>
> >>> Hi all,
> >>>
> >>&g
Bill Hoffman wrote:
> Martin Apel wrote:
>
>> Hi all,
>>
>> Inspired by the Emacs command cperl-perldoc-at-point I wrote a little
>> command to show the CMake documentation of the command on which the
>> cursor is currently positioned. It will open another
Hi all,
Inspired by the Emacs command cperl-perldoc-at-point I wrote a little
command to show the CMake documentation of the command on which the
cursor is currently positioned. It will open another buffer and show the
documentation generated from "cmake --help-command " in that
buffer. I found it
Alexander Neundorf wrote:
> On Thursday 23 April 2009, Martin Apel wrote:
>
>> Alexander Neundorf wrote:
>>
>>> On Wednesday 22 April 2009, Martin Apel wrote:
>>>
>>>> Hi all,
>>>>
>>>> I am currently fighting
Alexander Neundorf wrote:
> On Wednesday 22 April 2009, Martin Apel wrote:
>
>> Hi all,
>>
>> I am currently fighting with Visual Studio regenerating a
>> CMake-generated project on every build, although nothing has changed. I
>> am searching for a method how
Hi all,
I am currently fighting with Visual Studio regenerating a
CMake-generated project on every build, although nothing has changed. I
am searching for a method how to debug the generated dependencies inside VS.
The project builds a DLL from Fortran files, which are generated by a
Perl script.
James C. Sutherland wrote:
> Let me try this again.
>
> I have a f90 subroutine that performs file IO. I would like to link
> that with a C++ driver.
>
> If I use a fortran driver, I am able to set the binary format via
> set( CMAKE_Fortran_FLAGS "-fconvert=big-endian" )
> This results in
Hi Alexandre,
I don't think that CMake is able to handle this. I searched for a
solution to a similar problem involving the use of the --start-group and
--end-group option for ld on Linux. You might be able to define custom
rules for this, but then you are definitely on platform-dependent
ground.
xecutable or a library can find files that are located in
> the build directory.
>
>
>
>
>
> _
> Mike Jackson mike.jack...@bluequartz.net
> BlueQuartz Softwarewww.bluequartz.net
> Principal Software Engineer Dayton, Ohio
>
>
&
Hi all,
I am trying to write CMake rules to copy shared libraries / DLLs to the
runtime directory (not "installing"), right besides the binaries
generated by my project. In order to do this, I have rules like the
following:
ADD_CUSTOM_TARGET(QtLibs
COMM
Hi Martin,
I am using Dart still, not CDash. But anyway, this is mainly a CTest
configuration issue. Here is what I do:
I have a CTest script which contains the following line:
SET (CTEST_NOTES_FILES "${CTEST_BINARY_DIRECTORY}/SVNVersionInfo.txt")
This file is generated to contain the Subversion
Philip Lowman wrote:
> On Fri, Dec 12, 2008 at 9:34 AM, Martin Apel <mailto:martin.a...@simpack.de>> wrote:
>
> Philip Lowman wrote:
> > On Wed, Dec 10, 2008 at 4:04 AM, Martin Apel
> mailto:martin.a...@simpack.de>
> > <mailto:martin.a...@si
Michael Wild wrote:
> On 9. Jan, 2009, at 10:26, Martin Apel wrote:
>
>
>> Michael Wild wrote:
>>
>>> On 9. Jan, 2009, at 9:27, Martin Apel wrote:
>>>
>>>
>>>
>>>> Hi all,
>>>>
>>>> I am
Arjen Markus wrote:
>> You are right, that this is uncommon. But I'm trying to replace an
>> existing "build system" for some thousands of files, which preprocesses
>> all Fortran files, even those with ".f" suffix. Unfortunately this is
>> something I can't change.
>> I could use the approach you
Michael Wild wrote:
> On 9. Jan, 2009, at 9:27, Martin Apel wrote:
>
>
>> Hi all,
>>
>> I am experiencing a problem with one Fortran source file containing a
>> module definition. Unfortunately the whole source file is enclosed in
>> '#ifdef WINDOWS
Hi all,
I am experiencing a problem with one Fortran source file containing a
module definition. Unfortunately the whole source file is enclosed in
'#ifdef WINDOWS'. On Linux this causes the build process to fail,
because cmake wants to copy a generated .mod file, which does not exist.
The file co
Tyler Roscoe wrote:
> Is there a way to set flags for make from my CMakeLists.txt?
>
> Specifically, I have a cluster of build machines and I would like each
> of them to use a specific -j flag. (I would set the -j flag in a
> "global" cmake file where I set up things like project-wide -D flags and
Tyler Roscoe wrote:
> On Tue, Dec 16, 2008 at 09:44:38PM +0100, Eric NOULARD wrote:
>
>>> Ok, so is it simply impossible to do delta builds if my build process
>>> needs add_custom_command/add_custom_target invocations? Is there some
>>> better way to have CMake create the headers for me? Does t
Hi there,
I am trying to install the boost libraries my software needs into the
target installation directory as follows:
Find_Package(Boost 1.34.1 COMPONENTS filesystem system signals
program_options REQUIRED)
FOREACH (Lib ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY}
${Boost_SIGNALS_LIBRA
Michele Bosi wrote:
> Hi all,
> is there a way to issue extra preprocessor defines on a
> build-configuration basis, that is: I would like to add some
> preprocessor defines to my release builds and others to my debug
> builds. Basically I would need something like:
>
> add_definitions_release(-DDE
Bill Hoffman wrote:
> Martin Apel wrote:
>> Hi all,
>>
>> I am generating a DLL under Windows using a def file. The def file
>> itself is generated. It seems that CMake (2.6.3rc5) does not generate a
>> dependency between the generated def file and the DLL. When
Hi all,
I am generating a DLL under Windows using a def file. The def file
itself is generated. It seems that CMake (2.6.3rc5) does not generate a
dependency between the generated def file and the DLL. When I change the
input, from which the def file is generated, the def file is rebuilt,
but not
Alexander Neundorf wrote:
> On Monday 10 November 2008, Martin Apel wrote:
> ...
>
>> I recently played around with nightly builds as well. I used to have a
>> setup for experimental builds, but never could get the svn checkout to
>> run. With the approach describe
}"), or perhaps
> only if the CMakeCache.txt does not exist in the first place...)
>
> HTH,
> David
>
>
> On Mon, Nov 10, 2008 at 5:33 AM, Martin Apel <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Eric Noulard wrote:
> > 2008/1
Eric Noulard wrote:
> 2008/11/9 Alexander Neundorf <[EMAIL PROTECTED]>:
> [...]
>
>
>> commands can be executed.
>>
>> IMO this can make setting up Nightly builds much easier.
>>
>
> Looks interesting, I didn't ever thought ctest scripting was done for that.
> I did shell scripts for that a
Olivier Tournaire wrote:
> Hi all,
>
> I use boost in one of my project. However, cmake (2.6.2) does not seem
> to be able to find the libs. With the previous version of gcc (4.2.4),
> I did not have any problem. Here is what is in my CMakeLists.txt :
>
> # Find BOOST
> # SET( BOOST_LIBRARYDIR /usr
Brad King wrote:
> Brad King wrote:
>
>> CMake once just listed the object files on the command line in the
>> makefile, but users hit command line length limits with several hundred
>> object files. We solved the problem by listing the objects in a
>> response file. Now it looks like you've h
Hi all,
I am currently in the process of trying to convert the build system of
our software to CMake.
Unfortunately there is one static library consisting of lots of objects
(about 5700), which has lots of cyclic references, so I cannot easily
split it up.
I can generate this large library on Linu
Brad King wrote:
> We've built huge projects with thousands of custom build rules while
> still only having a few custom targets. Your original example can be
> written like this:
>
> ADD_CUSTOM_COMMAND(
> OUTPUT ${CMAKE_BINARY_DIR}/a
> COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_BINARY_DIR}/a
>
Alan W. Irwin wrote:
> On 2008-10-07 16:09-0400 Brad King wrote:
>
>> Now targets b and c and build in parallel, but neither will build until
>> 'a' is generated.
>
> Thanks, Brad, for your further explanation and example. My method
> (which I
> started to use as a result of misinterpreting someth
Hi all,
I'm experiencing the following problem with ADD_CUSTOM_COMMAND:
The commands defined for it are executed multiple times, if multiple
targets depend on it and I run a parallel make afterwards.
An example makes this easier to understand:
PROJECT(Test)
cmake_minimum_required(VERSION 2.6)
AD
Alan W. Irwin wrote:
> On 2008-09-29 16:00+0200 Martin Apel wrote:
>
>> Hi all,
>>
>> I have a library consisting of multiple sources from Fortran and C, e.g.
>> file1.f, file2.f, file3.c.
>> I want to generate this library in two different versions, where in
Hi all,
I have a library consisting of multiple sources from Fortran and C, e.g.
file1.f, file2.f, file3.c.
I want to generate this library in two different versions, where in one
of those versions the Fortran files are compiled with different options,
in my case with -ipo.
That means:
libv1.a
> different CMakeLists files?
>
>
> On Mon, Sep 8, 2008 at 3:02 AM, Martin Apel <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> I am using ADD_SUBDIRECTORY. I did'nt know, that anything like SUBDIRS
> exists and haven't found anything
I am using ADD_SUBDIRECTORY. I did'nt know, that anything like SUBDIRS
exists and haven't found anything in the documentation about it.
Martin
David Cole wrote:
> Are you using SUBDIRS or ADD_SUBDIRECTORY in your project...?
>
>
> On Thu, Sep 4, 2008 at 2:42 AM, Martin
in the sub-CMakeLists.txt...?
>
>
> On Wed, Sep 3, 2008 at 10:41 AM, Martin Apel <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi,
>
> I have defined the following in a top-level CMakeLists.txt:
> SET (CMAKE_SHARED_LINKER_FLAGS "${
Hi,
I have defined the following in a top-level CMakeLists.txt:
SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}
-Wl,--unresolved-symbols=ignore-in-shared-libs")
Now I'd like to reset this for one specific library in a subdirectory
(in a separate CMakeLists.txt added with ADD_SUBDIR
Convey, Christian J CIV NUWC NWPT wrote:
>
> I've got a top-level CMake project with numerous executable and
> library sub-projects. I'd like to have CMake generate Makefiles such
> that if one of those subprojects fails the build process, the Makefile
> still attempts to build all other subprojec
Hi,
I am trying to generate a DLL on Windows, which contains objects from C
source files as well as Fortran source files. When using the nmake
generator of cmake 2.6.0, everything works fine, as well as under Linux.
However when using the Visual Studio 8 generator, only the C sources are
comp
Hi all,
if I remember right, FindBoost currently ignores the minimum version
given. I had a similar problem myself and fell into the same trap.
Regards,
Martin
nilitonilito nilitonilito wrote:
Hi there,
I'm trying to detect libboost in my CMake root script, it works except
for min version
Bill Hoffman wrote:
Martin Apel wrote:
This is it! It seems to work correctly, when using cd instead of "cd
.". It seems I misinterpreted a command line parameter of a linker
call as the directory output. Sorry for the confusion.
I'm not exactly in love with Windows ;-)
OK
ot; -- cd . does not give any output at all, it's just a
no-op... cd without any arguments prints the current working directory
just like pwd...
On Fri, Jun 27, 2008 at 9:20 AM, Bill Hoffman
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
Martin Apel wrote:
Bill Hoffman wrote:
Martin Apel wrote:
Bill Hoffman wrote:
Martin Apel wrote:
Hi Brad,
this is kind of difficult under Windows, as far as I know. I have
MSys installed on my machine, but the pwd "command" is not really a
command (i.e. .exe) under MSys, but a shell script, which i
Bill Hoffman wrote:
Martin Apel wrote:
Hi Brad,
this is kind of difficult under Windows, as far as I know. I have
MSys installed on my machine, but the pwd "command" is not really a
command (i.e. .exe) under MSys, but a shell script, which invokes
the shell command "pwd&quo
" command in
C:\MSys\bin as an ordinary file, not an executable. So I cannot call
this from within ADD_CUSTOM_COMMAND. As I am no Windows expert, I
haven't found any other way. Can you recommend a way, how to do this?
Regards,
Martin
Brad King wrote:
Martin Apel wrote:
works properly. But still, my impression is, that the Visual
Studio generator ignores this parameter.
Regards,
Martin
Bill Hoffman wrote:
Martin Apel wrote:
Hi all,
I got the impression, that the CMake generator for Visual Studio 7
ignores the working directory set in ADD_CUSTOM_COMMAND. Is
Hi all,
I got the impression, that the CMake generator for Visual Studio 7
ignores the working directory set in ADD_CUSTOM_COMMAND. Is this a bug
or is this a documented feature somehow?
Or am I simply doing something wrong?
Regards,
Martin
Virus checked by G DATA AntiVirus
Ve
Hi all,
I am using the CMake generator for Visual Studio 2005 to generate
multiple projects. CMake generates one project file per library, which
is fine. When looking at a generated project inside Visual Studio the
project tree contains "Header files" and "Source files". Strange is,
that under
Mike Jackson wrote:
This is taken from a FindBoost.cmake file I had laying around. Adjust
for your needs:
EXEC_PROGRAM(${CMAKE_CXX_COMPILER}
ARGS --version
OUTPUT_VARIABLE _boost_COMPILER_VERSION
)
STRING(REGEX REP
Mike Jackson wrote:
typically, the PROJECT() statement is the first line of your
CMakeLists.txt. Could you explain your project layout a bit more?
I found out, that CMAKE_CXX_FLAGS is set to the compound of
$ENV{CXXFLAGS} and the platform-specific default at the time, the
PROJECT statement i
t;${CMAKE_C_FLAGS} -fmessage-length=0")
ENDIF(CMAKE_COMPILER_IS_GNUCC)
IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fmessage-length=0")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
Hope that helps a bit
-- Mike Jackson Senior Research Engineer
Innovative Management &
Hi all,
I am trying to set the CMAKE_CXX_FLAGS or CMAKE_CXX_FLAGS_INIT variable,
such that it contains flags to turn off specific warnings for the Visual
Studio compiler. I definitely want to set these additional flags from
within a CMakeFile, specifying them on the command line or interactive
Christian Ehrlicher wrote:
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
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 are generated.
The libra
Christoph Cullmann wrote:
Am Mittwoch 14 Mai 2008 16:30:24 schrieben Sie:
Are you sure the generated source file names are completely unpredictable?
Unless some random generator is being used, those names are probably
predictable, and it might be worth your while to look further into figuring
Newell, James C. wrote:
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Martin Apel
Sent: Tuesday, April 22, 2008 9:06 AM
To: cmake@cmake.org
Subject: [CMake] How to link executable with libraries containing
circulardependencies
Hi there,
I am trying
Hi there,
I am trying to link an executable with multiple libraries, which
reference each other in a circular fashion. It seems, that I cannot
specify the same library multiple times
in TARGET_LINK_LIBRARIES, so the link line will always end up with each
library listed exactly once. In my case
Hi,
I am currently trying to convert a big project containing Fortran and C
sources to use CMake. There are lots of circular dependencies between
libraries,
so I either have to specify libraries on the link line multiple times or
use the linker options --start-group and --end-group for ld on L
82 matches
Mail list logo